/[MITgcm]/MITgcm_contrib/jmc_script/run_cpl_test.beagle
ViewVC logotype

Diff of /MITgcm_contrib/jmc_script/run_cpl_test.beagle

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

revision 1.1 by jmc, Mon Dec 6 02:56:35 2010 UTC revision 1.2 by jmc, Tue Nov 8 22:58:22 2011 UTC
# Line 9  Line 9 
9  MTH=  MTH=
10  MTHo=  MTHo=
11  MTHa=  MTHa=
12    #GMKopt='-devel'
13  GMKopt='-ieee'  GMKopt='-ieee'
14  #GMKopt=  #GMKopt=
15  rnkO=1 ; rnkA=`expr $rnkO + $NpOc`  rnkO=1 ; rnkA=`expr $rnkO + $NpOc`
# Line 202  then Line 203  then
203      if [ $nc -le $NpOc ] ; then dd1=ocn ; else dd1=atm ; fi      if [ $nc -le $NpOc ] ; then dd1=ocn ; else dd1=atm ; fi
204      nn=1      nn=1
205    done    done
206      NpAt=`expr $Npr - 1 - $NpOc`
207      RunOpt="-np 1 ./build_cpl/mitgcmuv"
208      RunOpt="$RunOpt : -np $NpOc ./build_ocn/mitgcmuv"
209      RunOpt="$RunOpt : -np $NpAt ./build_atm/mitgcmuv"
210    
211    cd $ROOTDIR    cd $ROOTDIR
212    if test "x$MTH" != x ; then    if test "x$MTH" != x ; then
# Line 214  then Line 219  then
219      fi      fi
220      echo ""      echo ""
221    fi    fi
222  # /usr/local/pkg/mpi/mpi-1.2.4..8a-gm-1.5/pgi/bin/mpirun.ch_gm -pg pr_group -wd $ROOTDIR --gm-kill 5 -v  ./build_cpl/mitgcmuv > std_outp 2>&1    mpich=`which mpirun`
223  #- with mpich-1 (on danton, ACES):    echo $mpich | grep 'mpich-mx' > /dev/null 2>&1
224  # mpirun -p4pg pr_group -v ./build_cpl/mitgcmuv > std_outp 2>&1    mpichmx=$?
225  #- with mpich-mx (on beagle):    echo $mpich | grep 'mpich2' > /dev/null 2>&1
226    mpirun -pg pr_group -v ./build_cpl/mitgcmuv > std_outp 2>&1    mpich2=$?
227      if test $mpich2 == 0 ; then
228      #- with Hydra mpich2 (on baudelaire):
229        echo "execute 'mpirun $RunOpt' :"
230        mpirun $RunOpt  > std_outp 2>&1
231      elif test $mpichmx == 0 ; then
232      #- with mpich-mx (on beagle):
233        echo "execute 'mpirun -pg pr_group -v ./build_cpl/mitgcmuv' :"
234        mpirun -pg pr_group -v ./build_cpl/mitgcmuv > std_outp 2>&1
235      else
236      # /usr/local/pkg/mpi/mpi-1.2.4..8a-gm-1.5/pgi/bin/mpirun.ch_gm -pg pr_group -wd $ROOTDIR --gm-kill 5 -v  ./build_cpl/mitgcmuv > std_outp 2>&1
237      #- with mpich-1 (on danton, ACES):
238        echo "execute 'mpirun -p4pg pr_group -v ./build_cpl/mitgcmuv' :"
239        mpirun -p4pg pr_group -v ./build_cpl/mitgcmuv > std_outp 2>&1
240      fi
241    tail -20 std_outp    tail -20 std_outp
242    ls -l rank_$rnkO/pickup*.ckptA.001.001.data    ls -l rank_$rnkO/pickup*.ckptA.001.001.data
243    ls -l rank_$rnkA/pickup*.ckptA.001.001.data    ls -l rank_$rnkA/pickup*.ckptA.001.001.data
# Line 227  fi Line 246  fi
246    
247  if test $kpr = 4  if test $kpr = 4
248  then  then
249     CompRes="$HOME/bin/comp_res"
250    
251   if test -f rank_$rnkO/STDOUT.0000   if test -f rank_$rnkO/STDOUT.0000
252   then echo '==> check Ocean output:'   then echo '==> check Ocean output:'
253      /home/jmc/bin/comp_res rank_$rnkO/STDOUT.0000 results/ocnSTDOUT.0000      $CompRes rank_$rnkO/STDOUT.0000 results/ocnSTDOUT.0000
254      mv -f comp_res.log comp_res.ocn      mv -f comp_res.log comp_res.ocn
255      echo ' '      echo ' '
256   else echo "No Ocean output file in rank_$rnkO" ; fi   else echo "No Ocean output file in rank_$rnkO" ; fi
# Line 238  then Line 258  then
258   if test -f rank_$rnkA/STDOUT.0000   if test -f rank_$rnkA/STDOUT.0000
259   then   then
260      echo '==> check Atmos output:'      echo '==> check Atmos output:'
261      /home/jmc/bin/comp_res rank_$rnkA/STDOUT.0000 results/atmSTDOUT.0000      $CompRes rank_$rnkA/STDOUT.0000 results/atmSTDOUT.0000
262      mv -f comp_res.log comp_res.atm      mv -f comp_res.log comp_res.atm
263      echo '==> check Land output:'      echo '==> check Land output:'
264      /home/jmc/bin/comp_res rank_$rnkA/STDOUT.0000 results/atmSTDOUT.0000 L      $CompRes rank_$rnkA/STDOUT.0000 results/atmSTDOUT.0000 L
265      mv -f comp_res.log comp_res.land      mv -f comp_res.log comp_res.land
266      echo '==> check thSIce output:'      echo '==> check thSIce output:'
267      /home/jmc/bin/comp_res rank_$rnkA/STDOUT.0000 results/atmSTDOUT.0000 I      $CompRes rank_$rnkA/STDOUT.0000 results/atmSTDOUT.0000 I
268      mv -f comp_res.log comp_res.sice      mv -f comp_res.log comp_res.sice
269      echo ' '      echo ' '
270   else echo "No Atmos output file in rank_$rnkA" ; fi   else echo "No Atmos output file in rank_$rnkA" ; fi

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

  ViewVC Help
Powered by ViewVC 1.1.22