/[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.4 by edhill, Thu Oct 28 02:49:00 2004 UTC revision 1.5 by jmc, Thu Oct 28 20:46:45 2004 UTC
# Line 4  Line 4 
4  # $Name$  # $Name$
5    
6  Np=3  Np=3
7    Opt=' '
8    Opt='-ieee'
9  if [ $# -lt 1 ]  if [ $# -lt 1 ]
10  then  then
11    echo 'Usage:'`basename $0`' step '    echo 'Usage:'`basename $0`' step '
# Line 44  fi Line 46  fi
46    
47  if test $kpr = 0  if test $kpr = 0
48  then  then
49   rm -f genmake_optfile pr_group std_outp   rm -f genmake_optfile pr_group std_outp Coupler.0000.clog
50   rm -f build_???/TTT.*make.* build_???/TTT.mkdepend.*   rm -f build_???/TTT.*make.* build_???/TTT.mkdepend.*
51   /bin/rm -r -f rank_0 rank_1 rank_2   /bin/rm -r -f rank_0 rank_1 rank_2
52   if test -f build_cpl/Makefile ; then cd build_cpl ; make CLEAN ; cd .. ; fi   if test -f build_cpl/Makefile ; then cd build_cpl ; make CLEAN ; cd .. ; fi
# Line 59  then Line 61  then
61   echo '==== compile coupler:'   echo '==== compile coupler:'
62   cd build_cpl   cd build_cpl
63   echo ' --- genmake2 (cpl):'   echo ' --- genmake2 (cpl):'
64   ../../../tools/genmake2 -of ../genmake_optfile -ieee >  TTT.genmake.$$   ../../../tools/genmake2 -of ../genmake_optfile $Opt >  TTT.genmake.$$
65   tail -5 TTT.genmake.$$   tail -5 TTT.genmake.$$
66   echo ' --- make depend (cpl):'   echo ' --- make depend (cpl):'
67   make depend > TTT.mkdepend.$$   make depend > TTT.mkdepend.$$
# Line 72  then Line 74  then
74   echo '==== compile OGCM:'   echo '==== compile OGCM:'
75   cd build_ocn   cd build_ocn
76   echo ' --- genmake2 (ocn):'   echo ' --- genmake2 (ocn):'
77   ../../../tools/genmake2 -of ../genmake_optfile -ieee >  TTT.genmake.$$   ../../../tools/genmake2 -of ../genmake_optfile $Opt >  TTT.genmake.$$
78   tail -5 TTT.genmake.$$   tail -5 TTT.genmake.$$
79   echo ' --- make depend (ocn):'   echo ' --- make depend (ocn):'
80   make depend > TTT.mkdepend.$$   make depend > TTT.mkdepend.$$
# Line 85  then Line 87  then
87   echo '==== compile AGCM:'   echo '==== compile AGCM:'
88   cd build_atm   cd build_atm
89   echo ' --- genmake2 (atm):'   echo ' --- genmake2 (atm):'
90   ../../../tools/genmake2 -of ../genmake_optfile -ieee >  TTT.genmake.$$   ../../../tools/genmake2 -of ../genmake_optfile $Opt >  TTT.genmake.$$
91   tail -5 TTT.genmake.$$   tail -5 TTT.genmake.$$
92   echo ' --- make depend (atm):'   echo ' --- make depend (atm):'
93   make depend > TTT.mkdepend.$$   make depend > TTT.mkdepend.$$
# Line 113  then Line 115  then
115    ./SHARE_OCN_GRID '../rank_1'    ./SHARE_OCN_GRID '../rank_1'
116    cd $dir    cd $dir
117    
   mkdir cpl ocn atm  
   if test -f build_cpl/mitgcmuv ; then cp -p build_cpl/mitgcmuv cpl  
   else echo 'file: build_cpl/mitgcmuv not found => stop'; exit; fi  
   if test -f build_ocn/mitgcmuv ; then cp -p build_ocn/mitgcmuv ocn  
   else echo 'file: build_ocn/mitgcmuv not found => stop'; exit; fi  
   if test -f build_atm/mitgcmuv ; then cp -p build_atm/mitgcmuv atm  
   else echo 'file: build_atm/mitgcmuv not found => stop'; exit; fi  
   
118  fi  fi
119    
120  if test $kpr = 3  if test $kpr = 3

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

  ViewVC Help
Powered by ViewVC 1.1.22