484 |
cd $1; |
cd $1; |
485 |
if test -r Makefile ; then |
if test -r Makefile ; then |
486 |
printf 'make ... ' |
printf 'make ... ' |
487 |
if test "x$ADM" = xt ; then |
$MAKE $TARG >> make.tr_log 2>&1 |
|
$MAKE adall >> make.tr_log 2>&1 |
|
|
elif test "x$OADM" = xt ; then |
|
|
$MAKE adAll >> make.tr_log 2>&1 |
|
|
else |
|
|
if test "x$JOBS" = x ; then |
|
|
$MAKE $TARG >> make.tr_log 2>&1 |
|
|
else |
|
|
$MAKE -j $JOBS $TARG >> make.tr_log 2>&1 |
|
|
fi |
|
|
fi |
|
488 |
RETVAL=$? |
RETVAL=$? |
489 |
if test "x$RETVAL" != x0 ; then |
if test "x$RETVAL" != x0 ; then |
490 |
tail make.tr_log |
tail make.tr_log |
1105 |
|
|
1106 |
#- setting for forward or ADM testing |
#- setting for forward or ADM testing |
1107 |
if test "x$ADM" = xt ; then |
if test "x$ADM" = xt ; then |
1108 |
|
if test "x$TARG" = xobj ; then TARG=adobj ; else TARG=adall ; fi |
1109 |
code_dir=code_ad |
code_dir=code_ad |
1110 |
inputdir=input_ad |
inputdir=input_ad |
1111 |
ref_outp="output_adm.txt" |
ref_outp="output_adm.txt" |
1112 |
EXECUTABLE="mitgcmuv_ad" |
EXECUTABLE="mitgcmuv_ad" |
1113 |
elif test "x$OADM" = xt ; then |
elif test "x$OADM" = xt ; then |
1114 |
|
TARG=adAll |
1115 |
code_dir=code_oad |
code_dir=code_oad |
1116 |
inputdir=input_oad |
inputdir=input_oad |
1117 |
ref_outp="output_oadm.txt" |
ref_outp="output_oadm.txt" |
1118 |
EXECUTABLE="mitgcmuv_ad" |
EXECUTABLE="mitgcmuv_ad" |
1119 |
else |
else |
1120 |
|
if test "x$JOBS" != x ; then TARG="-j $JOBS $TARG" ; fi |
1121 |
code_dir=code |
code_dir=code |
1122 |
inputdir=input |
inputdir=input |
1123 |
ref_outp="output.txt" |
ref_outp="output.txt" |