Subversion Repositories lagranto.arpege

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
3 michaesp 1
#!/bin/csh
2
 
3
# ----- Load modules --------------------------
4
 
5
module load netcdf/4.2.1-pgf90
6
module list 
7
 
8
set tool = footprint 
9
 
10
# ----- Set libraries and includes ------------
11
 
12
set libs   = "${LAGRANTO}/lib/iotra.a"
13
set libs   = "${libs} -L ${LAGRANTO}/lib"
14
set libs   = "${libs} -lcdfio" 
15
set libs   = "${libs} -lcdfplus" 
16
set libs   = "${libs} ${LAGRANTO}/lib/times.a"
17
 
18
set ncdf_incs  = `nc-config --fflags`
19
set ncdf_libs  = `nc-config --flibs`
20
 
21
# ---- Modules ---------------------------------
22
 
23
${FORTRAN} -c footprint_proxy.f ${ncdf_incs}
24
${FORTRAN} -c rotate.f          ${ncdf_incs}
25
 
26
set mods = "footprint_proxy.o rotate.a" 
27
 
28
# ----- Compile --------------------- ----------
29
 
30
\rm -f ${tool}.o
31
\rm -f ${tool}
32
 
33
echo "${FORTRAN} -c ${tool}.f ${ncdf_incs}"  
34
      ${FORTRAN} -c ${tool}.f ${ncdf_incs}   
35
echo "${FORTRAN} -o ${tool} ${tool}.o ${mods} ${libs} ${ncdf_libs}"        
36
      ${FORTRAN} -o ${tool} ${tool}.o ${mods} ${libs} ${ncdf_libs}
37
 
38
if ( ! -f ${tool} ) then
39
  echo "ERROR: compilation of <tool> failed... exit"
40
  exit 1
41
endif
42
 
43
exit 0