/[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.15 by jmc, Wed Jan 13 00:25:37 2010 UTC revision 1.16 by jmc, Mon Nov 22 19:03:43 2010 UTC
# Line 3  Line 3 
3  # $Header$  # $Header$
4  # $Name$  # $Name$
5    
6    #- default:
7  Np=3  Np=3
 #- parse options:  
8  MTH=  MTH=
9  MTHo=  MTHo=
10  MTHa=  MTHa=
11    GMKopt='-ieee'
12    
13    #- parse options:
14  if [ $# -ge 1 ] ; then if test $1 = '-mth' ; then  if [ $# -ge 1 ] ; then if test $1 = '-mth' ; then
15    MTH='-omp' ; shift    MTH='-omp' ; shift
16    if test -f input_ocn/eedata.mth ; then MTHo=$MTH ; fi    if test -f input_ocn/eedata.mth ; then MTHo=$MTH ; fi
# Line 55  if test $kpr = 1 Line 58  if test $kpr = 1
58  then  then
59    
60  #- choice of the optfile: take a local one in dir verification with sufix '+mpi'  #- choice of the optfile: take a local one in dir verification with sufix '+mpi'
61   nbOpF=`ls ../linux_*+mpi 2> /dev/null | wc -l`   nbOpF=`ls ../linux_* | grep '+mpi' 2> /dev/null | wc -l`
62   if test $nbOpF = 1   if test $nbOpF = 1
63   then   then
64     OPTFILE=`ls ../linux_*+mpi`     OPTFILE=`ls ../linux_* | grep '+mpi'`
65     zz=`grep '^FC=' $OPTFILE`     zz=`grep '^FC=' $OPTFILE`
66     echo " Using optfile: $OPTFILE  (compiler=$zz) $MTH"     echo " Using optfile: $OPTFILE  (compiler=$zz) $MTH"
67   else echo 'Pb in finding optfile' ; exit;   else
68       echo "Pb in finding optfile: found $nbOpF :"
69       ls ../linux_* | grep '+mpi' ; exit
70   fi   fi
71   zz=`echo $OPTFILE | grep -c '^\/'`   zz=`echo $OPTFILE | grep -c '^\/'`
72   if test $zz = 0 ; then OPTFILE="../$OPTFILE" ; fi   if test $zz = 0 ; then OPTFILE="../$OPTFILE" ; fi
# Line 69  then Line 74  then
74   echo '==== compile coupler:'   echo '==== compile coupler:'
75   cd build_cpl   cd build_cpl
76   echo ' --- genmake2 (cpl):'   echo ' --- genmake2 (cpl):'
77   ../../../tools/genmake2 -of $OPTFILE -mpi -ieee >  TTT.genmake.$$   ../../../tools/genmake2 -of $OPTFILE -mpi $GMKopt >  TTT.genmake.$$
78   tail -5 TTT.genmake.$$   tail -5 TTT.genmake.$$
79   echo ' --- make depend (cpl):'   echo ' --- make depend (cpl):'
80   make depend > TTT.mkdepend.$$   make depend > TTT.mkdepend.$$
# Line 82  then Line 87  then
87   echo '==== compile OGCM:'   echo '==== compile OGCM:'
88   cd build_ocn   cd build_ocn
89   echo ' --- genmake2 (ocn):'   echo ' --- genmake2 (ocn):'
90   ../../../tools/genmake2 -of $OPTFILE -mpi $MTHo -ieee >  TTT.genmake.$$   ../../../tools/genmake2 -of $OPTFILE -mpi $MTHo $GMKopt >  TTT.genmake.$$
91   tail -5 TTT.genmake.$$   tail -5 TTT.genmake.$$
92   echo ' --- make depend (ocn):'   echo ' --- make depend (ocn):'
93   make depend > TTT.mkdepend.$$   make depend > TTT.mkdepend.$$
# Line 95  then Line 100  then
100   echo '==== compile AGCM:'   echo '==== compile AGCM:'
101   cd build_atm   cd build_atm
102   echo ' --- genmake2 (atm):'   echo ' --- genmake2 (atm):'
103   ../../../tools/genmake2 -of $OPTFILE -mpi $MTHa -ieee >  TTT.genmake.$$   ../../../tools/genmake2 -of $OPTFILE -mpi $MTHa $GMKopt >  TTT.genmake.$$
104   tail -5 TTT.genmake.$$   tail -5 TTT.genmake.$$
105   echo ' --- make depend (atm):'   echo ' --- make depend (atm):'
106   make depend > TTT.mkdepend.$$   make depend > TTT.mkdepend.$$
# Line 164  then Line 169  then
169     echo ""     echo ""
170   fi   fi
171  # /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  # /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
172    #- on danton (mpich-1):
173   mpirun -p4pg pr_group -v ./build_cpl/mitgcmuv > std_outp 2>&1   mpirun -p4pg pr_group -v ./build_cpl/mitgcmuv > std_outp 2>&1
174    #- on beagle:
175    #mpirun -pg pr_group -v ./build_cpl/mitgcmuv > std_outp 2>&1
176   tail -20 std_outp   tail -20 std_outp
177   ls -l rank_?/pickup*.ckptA.001.001.data   ls -l rank_?/pickup*.ckptA.001.001.data
178    

Legend:
Removed from v.1.15  
changed lines
  Added in v.1.16

  ViewVC Help
Powered by ViewVC 1.1.22