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

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

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

revision 1.10 by jmc, Tue Sep 18 03:07:23 2007 UTC revision 1.11 by jmc, Tue Nov 27 00:54:58 2007 UTC
# Line 43  fi Line 43  fi
43    
44  if test $kpr = 0  if test $kpr = 0
45  then  then
46   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}
47   rm -f build_???/TTT.*make.* build_???/TTT.mkdepend.*   rm -f build_???/TTT.*make.* build_???/TTT.mkdepend.*
48   /bin/rm -r -f rank_0 rank_1 rank_2   /bin/rm -r -f rank_0 rank_1 rank_2
49   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 53  fi Line 53  fi
53  if test $kpr = 5  if test $kpr = 5
54  then  then
55   echo 'remove output files in rank_0,1,2 dir.'   echo 'remove output files in rank_0,1,2 dir.'
56   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}
57   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
58   if test -d rank_1   if test -d rank_1
59   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 69  then Line 69  then
69   module list -t >& tmp_compiler   module list -t >& tmp_compiler
70   compiler=`sed -n 's/mpich\///p' tmp_compiler`   compiler=`sed -n 's/mpich\///p' tmp_compiler`
71   case $compiler in   case $compiler in
72    'gnu')   cp -p ../../tools/build_options/linux_ia32_g77+mpi_aces   genmake_optfile ;;    'gnu')   OPTFILE="../../tools/build_options/linux_ia32_g77+mpi_aces" ;;
73    'intel') cp -p ../../tools/build_options/linux_ia32_ifort+mpi_aces genmake_optfile ;;    'intel') OPTFILE="../../tools/build_options/linux_ia32_ifort+mpi_aces" ;;
74    'pgi')   cp -p ../../tools/build_options/linux_ia32_pgf77+mpi_aces genmake_optfile ;;    'pgi')   OPTFILE="../../tools/build_options/linux_ia32_pgf77+mpi_aces" ;;
75     *) echo 'ERROR: cannot use compiler:' $compiler ;     *) echo 'ERROR: cannot use compiler:' $compiler ;
76        echo ""; cat tmp_compiler ; exit 7 ;;        echo ""; cat tmp_compiler ; exit 7 ;;
77   esac   esac
78   rm -f tmp_compiler   rm -f tmp_compiler
79   echo " Using" $compiler "compiler:"   echo " Using optfile: $OPTFILE  (compiler=$compiler)"
80     xx=`echo $OPTFILE | grep -c '^\/'`
81     if test $xx = 0 ; then OPTFILE="../$OPTFILE" ; fi
82  #---  #---
83   echo '==== compile coupler:'   echo '==== compile coupler:'
84   cd build_cpl   cd build_cpl
85   echo ' --- genmake2 (cpl):'   echo ' --- genmake2 (cpl):'
86   ../../../tools/genmake2 -of ../genmake_optfile -mpi -ieee >  TTT.genmake.$$   ../../../tools/genmake2 -of $OPTFILE -mpi -ieee >  TTT.genmake.$$
87   tail -5 TTT.genmake.$$   tail -5 TTT.genmake.$$
88   echo ' --- make depend (cpl):'   echo ' --- make depend (cpl):'
89   make depend > TTT.mkdepend.$$   make depend > TTT.mkdepend.$$
# Line 94  then Line 96  then
96   echo '==== compile OGCM:'   echo '==== compile OGCM:'
97   cd build_ocn   cd build_ocn
98   echo ' --- genmake2 (ocn):'   echo ' --- genmake2 (ocn):'
99   ../../../tools/genmake2 -of ../genmake_optfile -mpi -ieee >  TTT.genmake.$$   ../../../tools/genmake2 -of $OPTFILE -mpi -ieee >  TTT.genmake.$$
100   tail -5 TTT.genmake.$$   tail -5 TTT.genmake.$$
101   echo ' --- make depend (ocn):'   echo ' --- make depend (ocn):'
102   make depend > TTT.mkdepend.$$   make depend > TTT.mkdepend.$$
# Line 107  then Line 109  then
109   echo '==== compile AGCM:'   echo '==== compile AGCM:'
110   cd build_atm   cd build_atm
111   echo ' --- genmake2 (atm):'   echo ' --- genmake2 (atm):'
112   ../../../tools/genmake2 -of ../genmake_optfile -mpi -ieee >  TTT.genmake.$$   ../../../tools/genmake2 -of $OPTFILE -mpi -ieee >  TTT.genmake.$$
113   tail -5 TTT.genmake.$$   tail -5 TTT.genmake.$$
114   echo ' --- make depend (atm):'   echo ' --- make depend (atm):'
115   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