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')" |
371 |
if test $KIND = 1 -o $KIND = 2 ; then |
if test $KIND = 1 -o $KIND = 2 ; then |
372 |
command="$command --mods=../code_ad" |
command="$command --mods=../code_ad" |
373 |
elif test $KIND = 4 ; then |
elif test $KIND = 4 ; then |
374 |
command="$command -adof ../../../tools/adjoint_options/adjoint_oad -mods '../code_oad ../../OpenAD/code_oad_all'" |
command="$command -adof ../../../tools/adjoint_options/adjoint_oad -mods ../code_oad" |
375 |
else |
else |
376 |
command="$command -mods=../code" |
command="$command -mods=../code" |
377 |
fi |
fi |
430 |
makeclean() |
makeclean() |
431 |
{ |
{ |
432 |
# makeclean directory |
# makeclean directory |
433 |
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 |
434 |
if test "x$NOCLEAN" = xt ; then |
if test "x$NOCLEAN" = xt ; then |
435 |
echo "make Clean skipped!" |
echo "make Clean skipped!" |
436 |
else |
else |
1294 |
|
|
1295 |
LOC_MFILE='tr_mpi_mfile' |
LOC_MFILE='tr_mpi_mfile' |
1296 |
RUNLOG="run.tr_log" |
RUNLOG="run.tr_log" |
1297 |
OUTPUTFILE=$ref_outp |
if test "x$MPI" = x0 ; then |
1298 |
if test "x$COMMAND" = x ; then |
OUTPUTFILE=$ref_outp |
1299 |
COMMAND="./$EXECUTABLE > $OUTPUTFILE" |
if test "x$COMMAND" = x ; then COMMAND="./$EXECUTABLE > $OUTPUTFILE" ; fi |
1300 |
fi |
else |
1301 |
if test "x$MPI" != x0 ; then |
OUTPUTFILE="STDOUT.0000" |
1302 |
OUTPUTFILE="STDOUT.0000" |
if test "x$COMMAND" = x ; then COMMAND="mpirun -v -np TR_NPROC ./$EXECUTABLE" ; fi |
1303 |
fi |
fi |
1304 |
|
|
1305 |
echo "OK (COMMAND= $COMMAND )" |
echo "OK (COMMAND='$COMMAND')" |
1306 |
|
|
1307 |
TMP=./tr_$$ |
TMP=./tr_$$ |
1308 |
#- try to put temporary files in system-local /tmp dir |
#- try to put temporary files in system-local /tmp dir |