219 |
|
|
220 |
if test $flag = '1' -o $flag = 'All' ; then |
if test $flag = '1' -o $flag = 'All' ; then |
221 |
#---------------------------------------------------------------------- |
#---------------------------------------------------------------------- |
222 |
|
#- check at the end of each run for pickup with prefix: |
223 |
|
pref='pickup' |
224 |
|
offLine=`grep -i -c '^ *useOffLine *= *\.TRUE\.' data.pkg` |
225 |
|
if [ $offLine -ge 1 ] ; then pref='pickup_ptracers' ; fi |
226 |
|
#--------------------------- |
227 |
if test -d $dir1 -o -d $dir2 -o -d $dir3 |
if test -d $dir1 -o -d $dir2 -o -d $dir3 |
228 |
then echo -n 'remove dir: ' |
then echo -n 'remove dir: ' |
229 |
if test -d $dir1 ; then echo -n $dir1 ' , ' ; rm -r $dir1 ; fi |
if test -d $dir1 ; then echo -n $dir1 ' , ' ; rm -r $dir1 ; fi |
242 |
else ./$gcmExc > std_outp.2it |
else ./$gcmExc > std_outp.2it |
243 |
fi |
fi |
244 |
mv STDERR.0000 std__err.2it |
mv STDERR.0000 std__err.2it |
245 |
if test -f pickup.ckptA.001.001.data |
out=`egrep -c 'STOP ABNORMAL END' std_outp.2it` |
246 |
then out=`egrep -c 'STOP ABNORMAL END' std_outp.2it` |
if test $out != 0 |
247 |
else out=9 ; fi |
then echo "==> RUN 2 x $Nit it : ABNORMAL END => exit" ; exit 1 ; fi |
248 |
if test $out != 0 ; then echo 'RUN 2it STOP before END => exit' ; exit 1 ; fi |
if test -f $pref.ckptA.001.001.data |
249 |
echo '==> END RUN 2 x' $Nit 'it' |
then echo "==> END RUN 2 x $Nit it" |
250 |
|
else echo "==> RUN 2 x $Nit it STOP without writing $pref => exit" ; exit 1 ; fi |
251 |
listP=`ls pickup*.ckptA* | sed 's/\..*//g' | uniq` |
listP=`ls pickup*.ckptA* | sed 's/\..*//g' | uniq` |
252 |
echo ' listP=' $listP |
echo ' listP=' $listP |
253 |
for xx in $listP |
for xx in $listP |
267 |
else ./$gcmExc > std_outp.1iA |
else ./$gcmExc > std_outp.1iA |
268 |
fi |
fi |
269 |
mv STDERR.0000 std__err.1iA |
mv STDERR.0000 std__err.1iA |
270 |
if test -f pickup.ckptA.001.001.data |
out=`egrep -c 'STOP ABNORMAL END' std_outp.1iA` |
271 |
then out=`egrep -c 'STOP ABNORMAL END' std_outp.1iA` |
if test $out != 0 |
272 |
else out=9 ; fi |
then echo "==> RUN 1iA : ABNORMAL END => exit" ; exit 2 ; fi |
273 |
if test $out != 0 ; then echo 'RUN 1iA STOP before END => exit' ; exit 2 ; fi |
if test -f $pref.ckptA.001.001.data |
274 |
echo '==> END RUN 1iA' |
then echo "==> END RUN 1iA" |
275 |
|
else echo "==> RUN 1iA STOP without writing $pref => exit" ; exit 2 ; fi |
276 |
for xx in $listP |
for xx in $listP |
277 |
do |
do |
278 |
rnp_loc $xx.ckptA $xx.$num1c |
rnp_loc $xx.ckptA $xx.$num1c |
292 |
else ./$gcmExc > std_outp.1iB |
else ./$gcmExc > std_outp.1iB |
293 |
fi |
fi |
294 |
mv STDERR.0000 std__err.1iB |
mv STDERR.0000 std__err.1iB |
295 |
if test -f pickup.ckptA.001.001.data |
out=`egrep -c 'STOP ABNORMAL END' std_outp.1iB` |
296 |
then out=`egrep -c 'STOP ABNORMAL END' std_outp.1iB` |
if test $out != 0 |
297 |
else out=9 ; fi |
then echo "==> RUN 1iB : ABNORMAL END => exit" ; exit 3 ; fi |
298 |
if test $out != 0 ; then echo 'RUN 1iB STOP before END => exit' ; exit 3 ; fi |
if test -f $pref.ckptA.001.001.data |
299 |
echo '==> END RUN 1iB' |
then echo "==> END RUN 1iB" |
300 |
|
else echo "==> RUN 1iB STOP without writing $pref => exit" ; exit 3 ; fi |
301 |
for xx in $listP |
for xx in $listP |
302 |
do |
do |
303 |
rnp_loc $xx.ckptA $xx.$num2c |
rnp_loc $xx.ckptA $xx.$num2c |