Commit 0a775e7a authored by Pierre Cazenave's avatar Pierre Cazenave

Add support for a different log file name for each model that is launched.

parent fdfbee92
...@@ -74,7 +74,7 @@ echo "$NNODES $NTASKS" ...@@ -74,7 +74,7 @@ echo "$NNODES $NTASKS"
echo "running fvcom ..." echo "running fvcom ..."
pwd pwd
time mpirun -np $NTASKS $EXE --casename $CASENAME --dbg=0 | tee $LF time mpirun -np $NTASKS $EXE --casename $CASENAME --dbg=0 | tee $LF
for node in `cat $PBS_NODEFILE | uniq ` ; do ssh $node "rm -f $CFILE" ; done for node in `cat $PBS_NODEFILE | uniq ` ; do ssh $node "rm -f $CFILE" ; done
...@@ -48,6 +48,7 @@ for ((m=0; m<${#MODELS[@]}; m++)); do ...@@ -48,6 +48,7 @@ for ((m=0; m<${#MODELS[@]}; m++)); do
# Fix the PBS file. # Fix the PBS file.
sed "s,__NODES__,$NODES,g;s,__TPN__,$TPN,g;s,__POPMOD__,HP,g;s,__TASKS__,$PROCS,g" $TEMPLATE > $PBS sed "s,__NODES__,$NODES,g;s,__TPN__,$TPN,g;s,__POPMOD__,HP,g;s,__TASKS__,$PROCS,g" $TEMPLATE > $PBS
sed -i "s,__SUFFIX__,tst_$SUFFIX,g" $PBS
sed -i 's,^RUNDIR=/home_nfs/pica/models/FVCOM/fvcom-examples/Estuary/run,RUNDIR=/home_nfs/pica/models/FVCOM/fvcom-examples/Estuary/run/launch/'${SUFFIX}',g' $PBS sed -i 's,^RUNDIR=/home_nfs/pica/models/FVCOM/fvcom-examples/Estuary/run,RUNDIR=/home_nfs/pica/models/FVCOM/fvcom-examples/Estuary/run/launch/'${SUFFIX}',g' $PBS
#sed -i 's/^CASENAME=tst/CASENAME=tst_'${SUFFIX}'/g' $PBS #sed -i 's/^CASENAME=tst/CASENAME=tst_'${SUFFIX}'/g' $PBS
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment