15 |
echo " (-mpi) use MPI to compile and run on 2 processors" |
echo " (-mpi) use MPI to compile and run on 2 processors" |
16 |
echo " (-MPI) NUMBER use MPI to compile and run on max NUMBER procs" |
echo " (-MPI) NUMBER use MPI to compile and run on max NUMBER procs" |
17 |
echo " (-mfile|-mf) STRING MPI: file with list of possible machines to run on" |
echo " (-mfile|-mf) STRING MPI: file with list of possible machines to run on" |
18 |
echo " (-ieee/-noieee) if possible, use IEEE compiler flags" |
echo " (-fast) use optfile default for compiler flags (no '-ieee')" |
19 |
echo " (DEF=\"-ieee\")" |
echo " DEF=off => use IEEE numerics option (if available)" |
20 |
|
echo " (-devel) use optfile developement flags (if available)" |
21 |
echo " (-gsl) compile with \"-gsl\" flag" |
echo " (-gsl) compile with \"-gsl\" flag" |
22 |
echo " (-use_r4|-ur4) if allowed, use real*4 type for '_RS' variable" |
echo " (-use_r4|-ur4) if allowed, use real*4 type for '_RS' variable" |
23 |
echo " (-optfile|-of) STRING list of optfiles to use" |
echo " (-optfile|-of) STRING list of optfiles to use" |
339 |
if test "x$OPTFILE" != xNONE ; then |
if test "x$OPTFILE" != xNONE ; then |
340 |
command="$command -optfile=$OPTFILE" |
command="$command -optfile=$OPTFILE" |
341 |
fi |
fi |
342 |
if test "x$IEEE" != x ; then |
if test $OptLev = 1 ; then |
343 |
command="$command -ieee" |
command="$command -ieee" |
344 |
|
fi |
345 |
|
if test $OptLev = 0 ; then |
346 |
|
command="$command -devel" |
347 |
fi |
fi |
348 |
if test "x$GSL" = xt ; then |
if test "x$GSL" = xt ; then |
349 |
command="$command -gsl" |
command="$command -gsl" |
493 |
if test "x$RETVAL" != x0 ; then |
if test "x$RETVAL" != x0 ; then |
494 |
tail make.tr_log |
tail make.tr_log |
495 |
echo failed |
echo failed |
496 |
cp make.tr_log genmake.log genmake.tr_log $CDIR |
cp genmake.log genmake.tr_log $CDIR |
497 |
|
tail -$NBLINES_MKLOG make.tr_log > $CDIR"/make.tr_log_tail" |
498 |
rm -f $EXECUTABLE |
rm -f $EXECUTABLE |
499 |
mk_fail=1 |
mk_fail=1 |
500 |
else |
else |
731 |
else |
else |
732 |
if test ! -f $OUTPUTFILE -o $OUTPUTFILE -ot $EXECUTABLE ; then |
if test ! -f $OUTPUTFILE -o $OUTPUTFILE -ot $EXECUTABLE ; then |
733 |
# output do not exist or is older than executable: |
# output do not exist or is older than executable: |
734 |
rm -f $RUNLOG ; touch $RUNLOG |
rm -f $OUTPUTFILE $RUNLOG ; touch $RUNLOG |
735 |
if test -f run.log_tmp ; then cat run.log_tmp >> $RUNLOG ; fi |
if test -f run.log_tmp ; then cat run.log_tmp >> $RUNLOG ; fi |
736 |
( eval $COMMAND ) >> $RUNLOG 2>&1 |
( eval $COMMAND ) >> $RUNLOG 2>&1 |
737 |
RETVAL=$? |
RETVAL=$? |
920 |
# Default properties |
# Default properties |
921 |
debug=0 |
debug=0 |
922 |
verbose=1 |
verbose=1 |
923 |
|
NBLINES_MKLOG=16000 |
924 |
|
|
925 |
IEEE=true |
IEEE=true |
926 |
if test "x$MITGCM_IEEE" != x ; then |
if test "x$MITGCM_IEEE" != x ; then |
927 |
IEEE=$MITGCM_IEEE |
IEEE=$MITGCM_IEEE |
928 |
fi |
fi |
929 |
|
OptLev=1 |
930 |
GSL=f |
GSL=f |
931 |
|
|
932 |
CLEANUP=f |
CLEANUP=f |
1049 |
-adm | -ad) ADM=t ;; |
-adm | -ad) ADM=t ;; |
1050 |
-oad) OADM=t; NODEPEND=t ;; |
-oad) OADM=t; NODEPEND=t ;; |
1051 |
|
|
1052 |
-ieee) IEEE=true ;; |
-ieee) echo "Warning: ignore option '-ieee' (already the default)" |
1053 |
-noieee) IEEE= ;; |
printf " ... " ;; |
1054 |
|
-noieee) echo "Warning: will use option '-fast' instead of '-noieee' (obsolete)" |
1055 |
|
printf " ... " ; OptLev=`expr $OptLev \* 2` ;; |
1056 |
|
-fast) OptLev=`expr $OptLev \* 2` ;; |
1057 |
|
-devel) OptLev=0 ;; |
1058 |
-gsl) GSL=t ;; |
-gsl) GSL=t ;; |
1059 |
|
|
1060 |
-verbose) verbose=2 ;; |
-verbose) verbose=2 ;; |