/[MITgcm]/MITgcm/verification/lab_sea/input_ad/dorun.sh
ViewVC logotype

Diff of /MITgcm/verification/lab_sea/input_ad/dorun.sh

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.2 by jmc, Fri Jul 19 13:14:20 2013 UTC revision 1.3 by jmc, Wed Jul 24 00:20:45 2013 UTC
# Line 3  Line 3 
3  #  $Header$  #  $Header$
4  #  $Name$  #  $Name$
5    
6  rm -f costf* divided.ctrl snapshot*  #  number of additional executions to perform is given by "add_DIVA_runs"
7    #  and corresponds to "nchklev_3" value in file "code_ad/tamc.h"
8  ./mitgcmuv_ad > output_adm.txt.p1  add_DIVA_runs=4
 ./mitgcmuv_ad > output_adm.txt.p2  
 ./mitgcmuv_ad > output_adm.txt.p3  
 ./mitgcmuv_ad > output_adm.txt.p4  
 ./mitgcmuv_ad > output_adm.txt  
9    
10    if test $# = 0 ; then
11        rm -f costfunction*0000 costfinal divided.ctrl snapshot*
12    #- not MPI run:
13        echo "Run $add_DIVA_runs times + final run:"
14        for ii in `seq 1 $add_DIVA_runs` ; do
15          ./mitgcmuv_ad > output_adm.txt.diva_${ii}
16          echo " additional DIVA run # $ii : done"
17        done
18        ./mitgcmuv_ad > output_adm.txt
19    else
20      if [ $1 -ge 1 ] ; then
21        rm -f costfunction*0000 costfinal divided.ctrl snapshot*
22    #- MPI run on $1 procs (note: may need to edit mpirun command):
23        echo "Run $add_DIVA_runs times + final run (use 'mpirun -np $1' ):"
24        for ii in `seq 1 $add_DIVA_runs` ; do
25          mpirun -np $1 ./mitgcmuv_ad
26          echo " additional DIVA run # $ii : done"
27          mv -f STDOUT.0000 STDOUT.0000.diva_${ii}
28        done
29        mpirun -np $1 ./mitgcmuv_ad
30      fi
31    fi

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

  ViewVC Help
Powered by ViewVC 1.1.22