Rev 5 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
# ----- Load modules --------------------------module load pgi/9.0-1module load netcdf/4.1.1-pgf90set 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.f90echo ${FORTRAN} -c precmod.f90${FORTRAN} -c precmod.f90echo ${FORTRAN} -c stringmod.f90${FORTRAN} -c stringmod.f90set 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} ) thenecho "ERROR: compilation of <tool> failed... exit"exit 1endifexit 0