527 |
*only* works if it is supported by the OPTFILE that |
*only* works if it is supported by the OPTFILE that |
528 |
is being used. |
is being used. |
529 |
|
|
530 |
|
-ts | --ts |
531 |
|
Produce timing information per timestep |
532 |
|
|
533 |
-mpi | --mpi |
-mpi | --mpi |
534 |
Include MPI header files and link to MPI libraries |
Include MPI header files and link to MPI libraries |
535 |
-mpi=PATH | --mpi=PATH |
-mpi=PATH | --mpi=PATH |
837 |
NOOPTFLAGS= |
NOOPTFLAGS= |
838 |
MPI= |
MPI= |
839 |
MPIPATH= |
MPIPATH= |
840 |
|
TS= |
841 |
|
|
842 |
# DEFINES checked by test compilation |
# DEFINES checked by test compilation or command-line |
843 |
HAVE_SYSTEM= |
HAVE_SYSTEM= |
844 |
HAVE_FDATE= |
HAVE_FDATE= |
845 |
FC_NAMEMANGLE= |
FC_NAMEMANGLE= |
847 |
HAVE_STAT= |
HAVE_STAT= |
848 |
HAVE_NETCDF= |
HAVE_NETCDF= |
849 |
HAVE_ETIME= |
HAVE_ETIME= |
850 |
|
IGNORE_TIME= |
851 |
|
|
852 |
MODS= |
MODS= |
853 |
TOOLSDIR= |
TOOLSDIR= |
893 |
|
|
894 |
# The following state can be set directly by command-line switches |
# The following state can be set directly by command-line switches |
895 |
gm_s1="OPTFILE PDEPEND PDEFAULT MAKEFILE PLATFORM ROOTDIR MODS DISABLE ENABLE" |
gm_s1="OPTFILE PDEPEND PDEFAULT MAKEFILE PLATFORM ROOTDIR MODS DISABLE ENABLE" |
896 |
gm_s2="FC CPP IEEE MPI JAM DUMPSTATE STANDARDDIRS" |
gm_s2="FC CPP IEEE TS MPI JAM DUMPSTATE STANDARDDIRS" |
897 |
|
|
898 |
# The following state is not directly set by command-line switches |
# The following state is not directly set by command-line switches |
899 |
gm_s3="LN S64 KPP LINK PACKAGES MAKEDEPEND PDEPEND PDEFAULT INCLUDES FFLAGS FOPTIM " |
gm_s3="LN S64 KPP LINK PACKAGES MAKEDEPEND PDEPEND PDEFAULT INCLUDES FFLAGS FOPTIM " |
1073 |
-noieee | --noieee) |
-noieee | --noieee) |
1074 |
IEEE= ;; |
IEEE= ;; |
1075 |
|
|
1076 |
|
-ts | --ts) |
1077 |
|
TS=true ;; |
1078 |
|
|
1079 |
-mpi | --mpi) |
-mpi | --mpi) |
1080 |
MPI=true ;; |
MPI=true ;; |
1081 |
-mpi=* | --mpi=*) |
-mpi=* | --mpi=*) |
1099 |
ac_prev=TAMC_EXTRA ;; |
ac_prev=TAMC_EXTRA ;; |
1100 |
-tamc_extra=* | --tamc_extra=*) |
-tamc_extra=* | --tamc_extra=*) |
1101 |
TAMC_EXTRA=$ac_optarg ;; |
TAMC_EXTRA=$ac_optarg ;; |
1102 |
|
|
1103 |
|
-ignoretime | -ignore_time | --ignoretime | --ignore_time) |
1104 |
|
IGNORE_TIME="-DIGNORE_TIME" ;; |
1105 |
|
|
1106 |
-*) |
-*) |
1107 |
echo "Error: unrecognized option: "$ac_option |
echo "Error: unrecognized option: "$ac_option |
1159 |
|
|
1160 |
# Find the MITgcm ${THISVER} |
# Find the MITgcm ${THISVER} |
1161 |
if test -f "${ROOTDIR}/doc/tag-index" ; then |
if test -f "${ROOTDIR}/doc/tag-index" ; then |
1162 |
THISVER=`grep checkpoint ${ROOTDIR}/doc/tag-index | head -1` |
THISVER=`grep '^checkpoint' ${ROOTDIR}/doc/tag-index | head -1` |
1163 |
fi |
fi |
1164 |
|
|
1165 |
if test "x$MAKEFILE" = x ; then |
if test "x$MAKEFILE" = x ; then |
1311 |
DEFINES="$DEFINES -DALLOW_USE_MPI -DALWAYS_USE_MPI" |
DEFINES="$DEFINES -DALLOW_USE_MPI -DALWAYS_USE_MPI" |
1312 |
fi |
fi |
1313 |
|
|
1314 |
|
if test ! "x$TS" = x ; then |
1315 |
|
echo " Turning on timing per timestep" |
1316 |
|
DEFINES="$DEFINES -DTIME_PER_TIMESTEP" |
1317 |
|
fi |
1318 |
|
|
1319 |
printf "\n=== Checking system libraries ===\n" |
printf "\n=== Checking system libraries ===\n" |
1320 |
printf " Do we have the system() command using $FC... " |
printf " Do we have the system() command using $FC... " |
1321 |
cat > genmake_tcomp.$FS <<EOF |
cat > genmake_tcomp.$FS <<EOF |
1403 |
else |
else |
1404 |
echo "no" |
echo "no" |
1405 |
fi |
fi |
1406 |
|
DEFINES="$DEFINES $IGNORE_TIME" |
1407 |
|
|
1408 |
printf "\n=== Setting defaults ===\n" |
printf "\n=== Setting defaults ===\n" |
1409 |
printf " Adding MODS directories: " |
printf " Adding MODS directories: " |