19 |
echo " (-mpi) use MPI to compile and run on 2 processors" |
echo " (-mpi) use MPI to compile and run on 2 processors" |
20 |
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" |
21 |
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" |
22 |
echo " (-command|-c) STRING command to run (needed for MPI run)" |
echo " (-command|-c) STRING command to run (e.g., if non-standard MPI setting)" |
23 |
|
echo " DEF='mitgcmuv' or ='mpirun -np TR_NPROC mitgcmuv'" |
24 |
echo " ---- testing options : ----" |
echo " ---- testing options : ----" |
25 |
echo " (-optfile|-of) STRING list of optfiles to use" |
echo " (-optfile|-of) STRING list of optfiles to use" |
26 |
echo " (-fast) use optfile default for compiler flags (no '-ieee')" |
echo " (-fast) use optfile default for compiler flags (no '-ieee')" |
368 |
if test "x$MKDEPEND" != x ; then |
if test "x$MKDEPEND" != x ; then |
369 |
command="$command -makedepend=$MKDEPEND" |
command="$command -makedepend=$MKDEPEND" |
370 |
fi |
fi |
371 |
if test $KIND = 1 -o $KIND = 2 ; then |
if test $KIND = 4 ; then |
372 |
command="$command --mods=../code_ad" |
command="$command -oad -mods=../$code_dir" |
|
elif test $KIND = 4 ; then |
|
|
command="$command -adof ../../../tools/adjoint_options/adjoint_oad -mods '../code_oad ../../OpenAD/code_oad_all'" |
|
373 |
else |
else |
374 |
command="$command -mods=../code" |
command="$command -mods=../$code_dir" |
375 |
fi |
fi |
376 |
if test "x$OPTFILE" != xNONE ; then |
if test "x$OPTFILE" != xNONE ; then |
377 |
command="$command -optfile=$OPTFILE" |
command="$command -optfile=$OPTFILE" |
428 |
makeclean() |
makeclean() |
429 |
{ |
{ |
430 |
# makeclean directory |
# makeclean directory |
431 |
if test "x$NODEPEND" = xf ; then rm -f $1/make.tr_log ; fi |
if test "x$NOGENMAKE" = xf ; then rm -f $1/make.tr_log ; fi |
432 |
if test "x$NOCLEAN" = xt ; then |
if test "x$NOCLEAN" = xt ; then |
433 |
echo "make Clean skipped!" |
echo "make Clean skipped!" |
434 |
else |
else |
1292 |
|
|
1293 |
LOC_MFILE='tr_mpi_mfile' |
LOC_MFILE='tr_mpi_mfile' |
1294 |
RUNLOG="run.tr_log" |
RUNLOG="run.tr_log" |
1295 |
OUTPUTFILE=$ref_outp |
if test "x$MPI" = x0 ; then |
1296 |
if test "x$COMMAND" = x ; then |
OUTPUTFILE=$ref_outp |
1297 |
COMMAND="./$EXECUTABLE > $OUTPUTFILE" |
if test "x$COMMAND" = x ; then COMMAND="./$EXECUTABLE > $OUTPUTFILE" ; fi |
1298 |
fi |
else |
1299 |
if test "x$MPI" != x0 ; then |
OUTPUTFILE="STDOUT.0000" |
1300 |
OUTPUTFILE="STDOUT.0000" |
if test "x$COMMAND" = x ; then COMMAND="mpirun -v -np TR_NPROC ./$EXECUTABLE" ; fi |
1301 |
fi |
fi |
1302 |
|
|
1303 |
echo "OK (COMMAND= $COMMAND )" |
echo "OK (COMMAND='$COMMAND')" |
1304 |
|
|
1305 |
TMP=./tr_$$ |
TMP=./tr_$$ |
1306 |
#- try to put temporary files in system-local /tmp dir |
#- try to put temporary files in system-local /tmp dir |