/[MITgcm]/MITgcm/verification/cpl_aim+ocn/run_cpl_test
ViewVC logotype

Diff of /MITgcm/verification/cpl_aim+ocn/run_cpl_test

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

revision 1.13 by jmc, Sat Dec 26 01:59:17 2009 UTC revision 1.14 by jmc, Sat Dec 26 23:44:03 2009 UTC
# Line 4  Line 4 
4  # $Name$  # $Name$
5    
6  Np=3  Np=3
7    #- parse options:
8  MTH=  MTH=
9  MTHo=  MTHo=
10  MTHa=  MTHa=
11  if [ $# -lt 1 ]  if test $1 = '-mth' ; then
12      MTH='-omp' ; shift
13      if test -f input_ocn/eedata.mth ; then MTHo=$MTH ; fi
14      if test -f input_atm/eedata.mth ; then MTHa=$MTH ; fi
15    fi
16    if [ $# -ne 1 ]
17  then  then
18    echo 'Usage:'`basename $0`' step [-mth]'    echo 'Usage:'`basename $0`' [opt] step'
19    echo ' => test coupled set-up on linux box (1.cpu)'    echo ' => test coupled set-up on linux box (1.cpu)'
20    echo 'step = 0 : clean all directories'    echo 'opt = -mth : compile and run (if eedata.mth) 2-threads for ocn & atm'
21    echo 'step = 1 : compile the 3 executables (cpl,ocn,atm)'    echo ' step = 0 : clean all directories'
22    echo 'step = 2 : copy input files and dir(s)'    echo ' step = 1 : compile the 3 executables (cpl,ocn,atm)'
23    echo "step = 3 : run with $Np mpi processes"    echo ' step = 2 : copy input files and dir(s)'
24    echo 'step = 4 : check the results'    echo " step = 3 : run with $Np mpi processes"
25    echo 'step = 5 : remove output files in rank_0,1,2 dir.'    echo ' step = 4 : check the results'
26    echo '  -mth   : compile and run 2 threads for ocn & atm'    echo ' step = 5 : remove output files in rank_0,1,2 dir.'
27    exit    exit
 elif [ $# -eq 2 ] ; then  
   if test $2 = '-mth' ; then  
     MTH='-omp'  
     if test -f input_ocn/eedata.mth ; then MTHo=$MTH ; fi  
     if test -f input_atm/eedata.mth ; then MTHa=$MTH ; fi  
   fi  
28  fi  fi
29  kpr=$1  kpr=$1
30  dir=`pwd`  dir=`pwd`

Legend:
Removed from v.1.13  
changed lines
  Added in v.1.14

  ViewVC Help
Powered by ViewVC 1.1.22