/[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.10 by jmc, Wed Nov 7 01:45:02 2007 UTC revision 1.11 by jmc, Tue Nov 27 00:54:58 2007 UTC
# Line 23  dir=`pwd` Line 23  dir=`pwd`
23    
24  if test $kpr = 0  if test $kpr = 0
25  then  then
26   rm -f genmake_optfile pr_group std_outp comp_res.{ocn,atm,land,sice}   rm -f pr_group std_outp comp_res.{ocn,atm,land,sice}
27   rm -f build_???/TTT.*make.* build_???/TTT.mkdepend.*   rm -f build_???/TTT.*make.* build_???/TTT.mkdepend.*
28   /bin/rm -r -f rank_0 rank_1 rank_2   /bin/rm -r -f rank_0 rank_1 rank_2
29   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 33  fi Line 33  fi
33  if test $kpr = 5  if test $kpr = 5
34  then  then
35   echo 'remove output files in rank_0,1,2 dir.'   echo 'remove output files in rank_0,1,2 dir.'
36   rm -f genmake_optfile pr_group std_outp comp_res.{ocn,atm,land,sice}   rm -f pr_group std_outp comp_res.{ocn,atm,land,sice}
37   if test -d rank_0 ; then cd rank_0 ; rm -f Coupler.0000.clog ; cd .. ; fi   if test -d rank_0 ; then cd rank_0 ; rm -f Coupler.0000.clog ; cd .. ; fi
38   if test -d rank_1   if test -d rank_1
39   then cd rank_1 ; rm -f *.data *.meta STD???.0000 UV-*.0001.clog ; cd .. ; fi   then cd rank_1 ; rm -f *.data *.meta STD???.0000 UV-*.0001.clog ; cd .. ; fi
# Line 48  then Line 48  then
48   nbOpF=`ls ../linux_*.mpi 2> /dev/null | wc -l`   nbOpF=`ls ../linux_*.mpi 2> /dev/null | wc -l`
49   if test $nbOpF = 1   if test $nbOpF = 1
50   then   then
51     yy=`ls ../linux_*.mpi` ; cp -p $yy genmake_optfile     OPTFILE=`ls ../linux_*.mpi`
52     zz=`grep '^FC=' genmake_optfile`     zz=`grep '^FC=' $OPTFILE`
53     echo " Using optfile: $yy  (compiler=$zz)"     echo " Using optfile: $OPTFILE  (compiler=$zz)"
54   else echo 'Pb in finding optfile' ; exit;   else echo 'Pb in finding optfile' ; exit;
55   fi   fi
56     zz=`echo $OPTFILE | grep -c '^\/'`
57     if test $zz = 0 ; then OPTFILE="../$OPTFILE" ; fi
58  #---  #---
59   echo '==== compile coupler:'   echo '==== compile coupler:'
60   cd build_cpl   cd build_cpl
61   echo ' --- genmake2 (cpl):'   echo ' --- genmake2 (cpl):'
62   ../../../tools/genmake2 -of ../genmake_optfile -mpi -ieee >  TTT.genmake.$$   ../../../tools/genmake2 -of $OPTFILE -mpi -ieee >  TTT.genmake.$$
63   tail -5 TTT.genmake.$$   tail -5 TTT.genmake.$$
64   echo ' --- make depend (cpl):'   echo ' --- make depend (cpl):'
65   make depend > TTT.mkdepend.$$   make depend > TTT.mkdepend.$$
# Line 70  then Line 72  then
72   echo '==== compile OGCM:'   echo '==== compile OGCM:'
73   cd build_ocn   cd build_ocn
74   echo ' --- genmake2 (ocn):'   echo ' --- genmake2 (ocn):'
75   ../../../tools/genmake2 -of ../genmake_optfile -mpi -ieee >  TTT.genmake.$$   ../../../tools/genmake2 -of $OPTFILE -mpi -ieee >  TTT.genmake.$$
76   tail -5 TTT.genmake.$$   tail -5 TTT.genmake.$$
77   echo ' --- make depend (ocn):'   echo ' --- make depend (ocn):'
78   make depend > TTT.mkdepend.$$   make depend > TTT.mkdepend.$$
# Line 83  then Line 85  then
85   echo '==== compile AGCM:'   echo '==== compile AGCM:'
86   cd build_atm   cd build_atm
87   echo ' --- genmake2 (atm):'   echo ' --- genmake2 (atm):'
88   ../../../tools/genmake2 -of ../genmake_optfile -mpi -ieee >  TTT.genmake.$$   ../../../tools/genmake2 -of $OPTFILE -mpi -ieee >  TTT.genmake.$$
89   tail -5 TTT.genmake.$$   tail -5 TTT.genmake.$$
90   echo ' --- make depend (atm):'   echo ' --- make depend (atm):'
91   make depend > TTT.mkdepend.$$   make depend > TTT.mkdepend.$$

Legend:
Removed from v.1.10  
changed lines
  Added in v.1.11

  ViewVC Help
Powered by ViewVC 1.1.22