Rev 5 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
# ----- Load modules --------------------------module load netcdf/4.2.1-pgf90module listset 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 ncdf_incs = `nc-config --fflags`set ncdf_libs = `nc-config --flibs`# ---- Modules ---------------------------------\rm -f precmod.o precision.modecho ${FORTRAN} -c precmod.f90${FORTRAN} -c precmod.f90\rm -f stringmod.o strings.modecho ${FORTRAN} -c stringmod.f90${FORTRAN} -c stringmod.f90\rm -f evalmod.o evaluate.modecho ${FORTRAN} -c evalmod.f90${FORTRAN} -c evalmod.f90set mods = " evalmod.o precmod.o stringmod.o "# ----- Compile --------------------- ----------\rm -f ${tool}.o\rm -f ${tool}echo "${FORTRAN} -c ${tool}.f ${ncdf_incs}"${FORTRAN} -c ${tool}.f ${ncdf_incs}echo "${FORTRAN} -o ${tool} ${tool}.o ${mods} ${libs} ${ncdf_libs}"${FORTRAN} -o ${tool} ${tool}.o ${mods} ${libs} ${ncdf_libs}if ( ! -f ${tool} ) thenecho "ERROR: compilation of <tool> failed... exit"exit 1endifexit 0