Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
# ----- Load modules --------------------------
module load pgi/9.0-1
module load netcdf/4.1.1-pgf90
set tool = tracal
# ----- Set libraries and includes ------------
set libs = "${LAGRANTO}/lib/iotra.a"
set libs = "${libs} -L ${LAGRANTO}/lib"
set libs = "${libs} -lcdfio"
set libs = "${libs} -lcdfplus"
set incs = "-I ${NETCDF_INC}"
set libs = "${libs} -L ${NETCDF_LIB} -lnetcdf"
# ---- Modules ---------------------------------
echo ${FORTRAN} -c evalmod.f90
${FORTRAN} -c evalmod.f90
echo ${FORTRAN} -c precmod.f90
${FORTRAN} -c precmod.f90
echo ${FORTRAN} -c stringmod.f90
${FORTRAN} -c stringmod.f90
set mods = " evalmod.o precmod.o stringmod.o "
# ----- Compile --------------------- ----------
\rm -f ${tool}.o
\rm -f ${tool}
echo "${FORTRAN} -O -o ${tool} ${tool}.f${mods} ${incs} ${libs}"
${FORTRAN} -O -o ${tool} ${tool}.f ${mods} ${incs} ${libs}
if ( ! -f ${tool} ) then
echo "ERROR: compilation of <tool> failed... exit"
exit 1
endif
exit 0