-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
57 lines (57 loc) · 1.05 KB
/
Makefile
File metadata and controls
57 lines (57 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# particleTracking makefile
#
FC=ifort
F90=ifort
CFLAGS= -O0 -traceback -g
CFLAGS90= -O0 -traceback -g -fopenmp
OPENMP=-fopenmp
LIBS=/sw/local/netcdf-4.3.0/lib/
BIN=particleTracking
INCLUDES=/sw/local/netcdf-fortran-4.2/include/
#
FILES=\
utilities.f90\
ptmModule.f90\
allocateArrays.f90\
get_closest_point.f90\
initialize.f90\
advectionDiffusion2D.f90\
advectionDiffusion3D.f90\
computeConcentrations.f90\
readUV2D.f90\
readUV3D.f90\
updateParticleLevel.f90\
updateParticleLocation.f90\
fate.f90\
writeOutput2D.f90\
writeOutput3D.f90\
readAtmosphere.f90\
readOceanModelInput.f90\
readOcean2D.f90\
readOcean3D.f90\
createParticles.f90\
readNetcdfGrid.f90\
particleTracking.f90\
#
OBJECTS=$(FILES:.f=.o)
OBJECTS.=$(FILES:.f90=.o)
#
.SUFFIXES: .o .f .F
#
all: $(BIN)
#
$(BIN): $(OBJECTS)
$(FC) $(OPENMP) -o $(BIN) $(OBJECTS) -I$(INCLUDES) -L$(LIBS) -lnetcdf -lnetcdff
@echo
@echo "************ particleTracking is now up to date!"
@echo
#
clean:
rm *.o *.mod $(BIN)
#
.f.o:
$(FC) -c $(CFLAGS) $*.f
.F.o:
$(FC) -c $(CFLAGS) $*.F
.f90.o:
$(F90) -c $(CFLAGS90) $*.f90