Subversion Repositories lagranto.wrf

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 michaesp 1
# ----- Load modules --------------------------
2
 
3
module load pgi/9.0-1
4
module load netcdf/4.1.1-pgf90
5
 
6
set tool = tracal
7
 
8
# ----- Set libraries and includes ------------
9
 
10
set libs   = "${LAGRANTO}/lib/iotra.a"
11
set libs   = "${libs} -L ${LAGRANTO}/lib"
12
set libs   = "${libs} -lcdfio" 
13
set libs   = "${libs} -lcdfplus" 
14
 
15
set incs   = "-I ${NETCDF_INC}"
16
set libs   = "${libs} -L ${NETCDF_LIB} -lnetcdf"
17
 
18
# ---- Modules ---------------------------------
19
 
20
echo ${FORTRAN} -c evalmod.f90
21
${FORTRAN} -c evalmod.f90
22
 
23
echo ${FORTRAN} -c precmod.f90
24
${FORTRAN} -c precmod.f90
25
 
26
echo ${FORTRAN} -c stringmod.f90
27
${FORTRAN} -c stringmod.f90
28
 
29
set mods = " evalmod.o precmod.o stringmod.o " 
30
 
31
# ----- Compile --------------------- ----------
32
 
33
\rm -f ${tool}.o
34
\rm -f ${tool}
35
 
36
echo "${FORTRAN} -O -o ${tool} ${tool}.f${mods}  ${incs} ${libs}"  
37
${FORTRAN} -O -o ${tool} ${tool}.f ${mods} ${incs} ${libs}   
38
 
39
if ( ! -f ${tool} ) then
40
  echo "ERROR: compilation of <tool> failed... exit"
41
  exit 1
42
endif
43
 
44
exit 0