Merge branch 'stream' into femwind
[wrf-fire-matlab.git] / femwind / fortran / Makefile
bloba7ad3c93c9e0d19e7007598c85f9e01a98193aca
1 FC = ifort
2 FC = gfortran
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
9 default: hexa_test.exe\
10 ndt_mult_test.exe\
11 sweeps_test.exe\
12 f_assembly_test.exe\
13 prolongation_test.exe\
14 restriction_test.exe\
15 ndt_assembly_test.exe\
16 ndt_w_test.exe\
17 coarsening_icl_test.exe\
18 ndt_boundary_conditions_test.exe\
19 vec_boundary_conditions_test.exe\
20 femwind_test.exe
24 hexa_test.exe: hexa_test.o module_hexa.o module_utils.o Makefile
25 $(FC) $(FFLAGS) -o hexa_test.exe hexa_test.o module_hexa.o module_utils.o
27 module_hexa.o: module_hexa.f90 module_utils.o Makefile
28 $(FC) $(FFLAGS) -c module_hexa.f90
30 hexa_test.o: hexa_test.f90 module_hexa.o module_utils.o Makefile
31 $(FC) $(FFLAGS) -c hexa_test.f90
33 module_utils.o: module_utils.f90 Makefile
34 $(FC) $(FFLAGS) -c module_utils.f90
36 module_common.o: module_common.f90 module_utils.o Makefile
37 $(FC) $(FFLAGS) -c module_common.f90
39 module_ndt_mult.o: module_ndt_mult.f90 module_utils.o Makefile
40 $(FC) $(FFLAGS) -c module_ndt_mult.f90 module_utils.o
42 ndt_mult_test.exe: ndt_mult_test.f90 module_ndt_mult.o module_utils.o Makefile
43 $(FC) $(FFLAGS) -o ndt_mult_test.exe ndt_mult_test.f90 module_ndt_mult.o module_utils.o
45 sweeps_test.exe: sweeps_test.o module_sweeps.o module_utils.o Makefile
46 $(FC) $(FFLAGS) -o sweeps_test.exe sweeps_test.f90 module_sweeps.o module_utils.o
48 module_sweeps.o: module_sweeps.f90 Makefile
49 $(FC) $(FFLAGS) -c module_sweeps.f90
51 sweeps_test.o: sweeps_test.f90 module_sweeps.o module_utils.o Makefile
52 $(FC) $(FFLAGS) -c sweeps_test.f90
54 ndt_assembly_test.exe: ndt_assembly_test.o module_ndt_assembly.o module_utils.o module_hexa.o Makefile
55 $(FC) $(FFLAGS) -o ndt_assembly_test.exe ndt_assembly_test.o module_ndt_assembly.o module_utils.o module_hexa.o
57 ndt_assembly_test.o: ndt_assembly_test.f90 module_hexa.o module_utils.o module_ndt_assembly.o Makefile
58 $(FC) $(FFLAGS) -c ndt_assembly_test.f90
60 module_ndt_assembly.o: module_ndt_assembly.f90 module_hexa.o Makefile
61 $(FC) $(FFLAGS) -c module_ndt_assembly.f90
63 f_assembly_test.exe: f_assembly_test.f90 module_f_assembly.o module_utils.o module_hexa.o Makefile
64 $(FC) $(FFLAGS) -o f_assembly_test.exe f_assembly_test.f90 module_f_assembly.o module_utils.o module_hexa.o
66 module_f_assembly.o: module_f_assembly.f90 module_hexa.o module_utils.o Makefile
67 $(FC) $(FFLAGS) -c module_f_assembly.f90
69 module_coarsening.o: module_coarsening.f90 module_hexa.o Makefile
70 $(FC) $(FFLAGS) -c module_coarsening.f90
72 PROLONGATION = prolongation_test.f90 module_coarsening.o module_utils.o
73 prolongation_test.exe: $(PROLONGATION)
74 $(FC) $(FFLAGS) -o prolongation_test.exe $(PROLONGATION)
76 RESTRICTION = restriction_test.f90 module_coarsening.o module_utils.o
77 restriction_test.exe: $(RESTRICTION) Makefile
78 $(FC) $(FFLAGS) -o restriction_test.exe $(RESTRICTION)
80 ICL = coarsening_icl_test.f90 module_coarsening.o module_utils.o
81 coarsening_icl_test.exe: $(ICL) Makefile
82 $(FC) $(FFLAGS) -o $@ $(ICL)
84 module_boundary_conditions.o: module_boundary_conditions.f90 module_utils.o Makefile
85 $(FC) $(FFLAGS) -c module_boundary_conditions.f90
87 NDT_BOUNDARY_CONDITIONS = ndt_boundary_conditions_test.f90 module_boundary_conditions.o module_utils.o
88 ndt_boundary_conditions_test.exe: $(NDT_BOUNDARY_CONDITIONS) Makefile
89 $(FC) $(FFLAGS) -o $@ $(NDT_BOUNDARY_CONDITIONS)
91 VEC_BOUNDARY_CONDITIONS = vec_boundary_conditions_test.f90 module_boundary_conditions.o module_utils.o
92 vec_boundary_conditions_test.exe: $(VEC_BOUNDARY_CONDITIONS) Makefile
93 $(FC) $(FFLAGS) -o $@ $(VEC_BOUNDARY_CONDITIONS)
95 ndt_w_test.exe: ndt_w_test.o module_ndt_w_assembly.o module_utils.o module_hexa.o module_lin_alg.o Makefile
96 $(FC) $(FFLAGS) -o ndt_w_test.exe ndt_w_test.o module_ndt_w_assembly.o module_utils.o module_hexa.o module_lin_alg.o
98 ndt_w_test.o: ndt_w_test.f90 module_hexa.o module_utils.o module_ndt_w_assembly.o Makefile
99 $(FC) $(FFLAGS) -c ndt_w_test.f90
101 module_ndt_w_assembly.o: module_ndt_w_assembly.f90 module_hexa.o module_lin_alg.o Makefile
102 $(FC) $(FFLAGS) -c module_ndt_w_assembly.f90
104 module_lin_alg.o: module_lin_alg.f90 Makefile
105 $(FC) $(FFLAGS) -c module_lin_alg.f90
107 module_multigrid.o: module_multigrid.f90 module_ndt_assembly.o module_boundary_conditions.o module_common.o module_utils.o Makefile
108 $(FC) $(FFLAGS) -c module_multigrid.f90
110 module_femwind.o: module_femwind.f90 module_multigrid.o module_f_assembly.o module_ndt_w_assembly.o module_boundary_conditions.o module_common.o module_utils.o Makefile
111 $(FC) $(FFLAGS) -c module_femwind.f90
113 FEMWIND_TEST = femwind_test.f90\
114 module_femwind.o\
115 module_multigrid.o\
116 module_ndt_assembly.o\
117 module_ndt_w_assembly.o\
118 module_ndt_mult.o\
119 module_lin_alg.o\
120 module_f_assembly.o\
121 module_hexa.o\
122 module_coarsening.o\
123 module_sweeps.o\
124 module_boundary_conditions.o\
125 module_utils.o \
126 module_common.o
127 femwind_test.exe: $(FEMWIND_TEST)
128 $(FC) $(FFLAGS) -o $@ $(FEMWIND_TEST)
130 clean:
131 rm -rf *.mod *.o *.exe *.dSYM