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

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

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


Revision 1.3 - (hide annotations) (download) (as text)
Wed Jul 24 00:20:45 2013 UTC (10 years, 9 months ago) by jmc
Branch: MAIN
CVS Tags: checkpoint64y, checkpoint64x, checkpoint64z, checkpoint64o, checkpoint64q, checkpoint64p, checkpoint64s, checkpoint64r, checkpoint64u, checkpoint64t, checkpoint64w, checkpoint64v, checkpoint66g, checkpoint66f, checkpoint66e, checkpoint66d, checkpoint66c, checkpoint66b, checkpoint66a, checkpoint64n, checkpoint66o, checkpoint66n, checkpoint66m, checkpoint66l, checkpoint66k, checkpoint66j, checkpoint66i, checkpoint66h, checkpoint65z, checkpoint65x, checkpoint65y, checkpoint65r, checkpoint65s, checkpoint65p, checkpoint65q, checkpoint65v, checkpoint65w, checkpoint65t, checkpoint65u, checkpoint65j, checkpoint65k, checkpoint65h, checkpoint65i, checkpoint65n, checkpoint65o, checkpoint65l, checkpoint65m, checkpoint65b, checkpoint65c, checkpoint65a, checkpoint65f, checkpoint65g, checkpoint65d, checkpoint65e, checkpoint65, checkpoint64m, checkpoint64l, HEAD
Changes since 1.2: +26 -8 lines
File MIME type: application/x-sh
- same output sufix as with testreport
- option to run with MPI (taking 1rst argument as number of MPI procs)

1 heimbach 1.1 #! /usr/bin/env bash
2    
3 jmc 1.3 # $Header: /u/gcmpack/MITgcm/verification/lab_sea/input_ad/dorun.sh,v 1.2 2013/07/19 13:14:20 jmc Exp $
4 jmc 1.2 # $Name: $
5 heimbach 1.1
6 jmc 1.3 # 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     add_DIVA_runs=4
9 heimbach 1.1
10 jmc 1.3 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

  ViewVC Help
Powered by ViewVC 1.1.22