started adding of wind profile
[wrf-fire-matlab.git] / femwind / fortran / Makefile
blobae0004c9b55c9de8912c5ccf3d1b8e791117965e
1 #FC = gfortran
2 #FC = ifort
3 FFLAGS = -g -C --ffpe-trap=invalid,zero,overflow,underflow -traceback -fpe0 # intel debug
4 FFLAGS = -O3 -fdefault-real-8 # gnu
5 FFLAGS = -g -C -fpe0 -r8 # intel debug
6 FFLAGS = -g -C -fdefault-real-8
7 FFLAGS = -O3 -pg
8 FFLAGS = -g -C -I /opt/local/include
9 LFLAGS = -L/opt/local/lib -lnetcdf -l netcdff
10 FFLAGS = -pg -O3 -I $(NETCDF)/include
11 FFLAGS = -O3 -I $(NETCDF)/include
12 FFLAGS = -g -C -I $(NETCDF)/include
13 LFLAGS = -L$(NETCDF)/lib -lnetcdf -lnetcdff
15 default: femwind_wrfout.exe
17 tests: hexa_test.exe\
18 ndt_mult_test.exe\
19 sweeps_test.exe\
20 f_assembly_test.exe\
21 prolongation_test.exe\
22 restriction_test.exe\
23 ndt_assembly_test.exe\
24 w_test.exe\
25 coarsening_icl_test.exe\
26 ndt_boundary_conditions_test.exe\
27 vec_boundary_conditions_test.exe\
28 femwind_test.exe\
29 netcdf_test.exe
31 all: default tests
33 hexa_test.exe: hexa_test.o module_hexa.o module_utils.o Makefile
34 $(FC) $(FFLAGS) -o hexa_test.exe hexa_test.o module_hexa.o module_utils.o
36 module_hexa.o: module_hexa.f90 module_utils.o Makefile
37 $(FC) $(FFLAGS) -c module_hexa.f90
39 hexa_test.o: hexa_test.f90 module_hexa.o module_utils.o Makefile
40 $(FC) $(FFLAGS) -c hexa_test.f90
42 module_utils.o: module_utils.f90 Makefile
43 $(FC) $(FFLAGS) -c module_utils.f90
45 module_netcdf.o: module_utils.o module_netcdf.f90 Makefile
46 $(FC) $(FFLAGS) -c module_netcdf.f90
48 module_wrfout.o: module_wrfout.f90 module_netcdf.o Makefile
49 $(FC) $(FFLAGS) -c module_wrfout.f90
51 module_common.o: module_common.f90 module_utils.o Makefile
52 $(FC) $(FFLAGS) -c module_common.f90
54 module_ndt_mult.o: module_ndt_mult.f90 module_utils.o Makefile
55 $(FC) $(FFLAGS) -c module_ndt_mult.f90
57 ndt_mult_test.exe: ndt_mult_test.f90 module_ndt_mult.o module_utils.o Makefile
58 $(FC) $(FFLAGS) -o ndt_mult_test.exe ndt_mult_test.f90 module_ndt_mult.o module_utils.o
60 sweeps_test.exe: sweeps_test.o module_sweeps.o module_utils.o Makefile
61 $(FC) $(FFLAGS) -o sweeps_test.exe sweeps_test.f90 module_sweeps.o module_utils.o
63 module_sweeps.o: module_sweeps.f90 module_utils.o Makefile
64 $(FC) $(FFLAGS) -c module_sweeps.f90
66 sweeps_test.o: sweeps_test.f90 module_sweeps.o module_utils.o Makefile
67 $(FC) $(FFLAGS) -c sweeps_test.f90
69 ndt_assembly_test.exe: ndt_assembly_test.o module_ndt_assembly.o module_utils.o module_hexa.o Makefile
70 $(FC) $(FFLAGS) -o ndt_assembly_test.exe ndt_assembly_test.o module_ndt_assembly.o module_utils.o module_hexa.o
72 ndt_assembly_test.o: ndt_assembly_test.f90 module_hexa.o module_utils.o module_ndt_assembly.o Makefile
73 $(FC) $(FFLAGS) -c ndt_assembly_test.f90
75 module_ndt_assembly.o: module_ndt_assembly.f90 module_hexa.o Makefile
76 $(FC) $(FFLAGS) -c module_ndt_assembly.f90
78 f_assembly_test.exe: f_assembly_test.f90 module_f_assembly.o module_utils.o module_hexa.o Makefile
79 $(FC) $(FFLAGS) -o f_assembly_test.exe f_assembly_test.f90 module_f_assembly.o module_utils.o module_hexa.o
81 module_f_assembly.o: module_f_assembly.f90 module_hexa.o module_utils.o Makefile
82 $(FC) $(FFLAGS) -c module_f_assembly.f90
84 module_coarsening.o: module_coarsening.f90 module_hexa.o Makefile
85 $(FC) $(FFLAGS) -c module_coarsening.f90
87 PROLONGATION = prolongation_test.f90 module_coarsening.o module_utils.o
88 prolongation_test.exe: $(PROLONGATION)
89 $(FC) $(FFLAGS) -o prolongation_test.exe $(PROLONGATION)
91 RESTRICTION = restriction_test.f90 module_coarsening.o module_utils.o
92 restriction_test.exe: $(RESTRICTION) Makefile
93 $(FC) $(FFLAGS) -o restriction_test.exe $(RESTRICTION)
95 ICL = coarsening_icl_test.f90 module_coarsening.o module_utils.o
96 coarsening_icl_test.exe: $(ICL) Makefile
97 $(FC) $(FFLAGS) -o $@ $(ICL)
99 module_boundary_conditions.o: module_boundary_conditions.f90 module_utils.o Makefile
100 $(FC) $(FFLAGS) -c module_boundary_conditions.f90
102 NDT_BOUNDARY_CONDITIONS = ndt_boundary_conditions_test.f90 module_boundary_conditions.o module_utils.o
103 ndt_boundary_conditions_test.exe: $(NDT_BOUNDARY_CONDITIONS) Makefile
104 $(FC) $(FFLAGS) -o $@ $(NDT_BOUNDARY_CONDITIONS)
106 VEC_BOUNDARY_CONDITIONS = vec_boundary_conditions_test.f90 module_boundary_conditions.o module_utils.o
107 vec_boundary_conditions_test.exe: $(VEC_BOUNDARY_CONDITIONS) Makefile
108 $(FC) $(FFLAGS) -o $@ $(VEC_BOUNDARY_CONDITIONS)
110 w_test.exe: w_test.o module_w_assembly.o module_utils.o module_hexa.o module_lin_alg.o Makefile
111 $(FC) $(FFLAGS) -o w_test.exe w_test.o module_w_assembly.o module_utils.o module_hexa.o module_lin_alg.o
113 w_test.o: w_test.f90 module_hexa.o module_utils.o module_w_assembly.o Makefile
114 $(FC) $(FFLAGS) -c w_test.f90
116 module_w_assembly.o: module_w_assembly.f90 module_hexa.o module_lin_alg.o Makefile
117 $(FC) $(FFLAGS) -c module_w_assembly.f90
119 module_lin_alg.o: module_lin_alg.f90 Makefile
120 $(FC) $(FFLAGS) -c module_lin_alg.f90
122 module_multigrid.o: module_sweeps.o module_multigrid.f90 module_coarsening.o module_ndt_mult.o module_ndt_assembly.o module_boundary_conditions.o module_common.o module_utils.o Makefile
123 $(FC) $(FFLAGS) -c module_multigrid.f90
125 module_femwind.o: module_femwind.f90 module_multigrid.o module_f_assembly.o module_w_assembly.o module_boundary_conditions.o module_common.o module_utils.o Makefile
126 $(FC) $(FFLAGS) -c module_femwind.f90
128 FEMWIND_MODULES = \
129 module_femwind.o\
130 module_multigrid.o\
131 module_ndt_assembly.o\
132 module_w_assembly.o\
133 module_ndt_mult.o\
134 module_lin_alg.o\
135 module_f_assembly.o\
136 module_hexa.o\
137 module_coarsening.o\
138 module_sweeps.o\
139 module_boundary_conditions.o\
140 module_utils.o \
141 module_common.o
143 femwind_test.exe: femwind_test.f90 $(FEMWIND_MODULES) Makefile
144 $(FC) $(FFLAGS) -o $@ femwind_test.f90 $(FEMWIND_MODULES)
146 WRFOUT_MODULES = \
147 module_netcdf.o \
148 module_wrfout.o
150 FEMWIND_WRFOUT = femwind_wrfout.f90 $(WRFOUT_MODULES) $(FEMWIND_MODULES)
152 femwind_wrfout.exe: $(FEMWIND_WRFOUT) Makefile
153 $(FC) $(FFLAGS) -o $@ $(FEMWIND_WRFOUT) $(LFLAGS)
155 NETCDF_TEST = netcdf_test.f90 $(WRFOUT_MODULES) module_utils.o
157 netcdf_test.exe: $(NETCDF_TEST) Makefile
158 $(FC) $(FFLAGS) -o $@ $(NETCDF_TEST) $(LFLAGS)
160 clean:
161 rm -rf *.mod *.o *.exe *.dSYM