/[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.12 by jmc, Tue Jul 7 00:55:51 2009 UTC revision 1.13 by jmc, Sat Dec 26 01:58:17 2009 UTC
# Line 19  fi Line 19  fi
19  kpr=$1  kpr=$1
20  dir=`pwd`  dir=`pwd`
21    
22  #- only works from a 3 (or more) nodes PBS bach session ( qsub -I -l nodes=3 )  #- only works from a 3 (or more) nodes PBS bach session on ACES cluster
23  #  on ACES cluster (tested on itrda).  #  (tested on ao)  ( qsub -I -l nodes=3   -or-
24    #                    qsub -I -l nodes=3:ppn=2  )
25  # need to be on one computer node,  # need to be on one computer node,
26  #  and with the correct module loaded (i.e, one of the 3):  #  and with the correct module loaded (i.e, one of the 3):
27  # > module load mpich/gnu  # > module load mpich/gnu
# Line 32  then Line 33  then
33    echo ' $PBS_NODEFILE not defined'    echo ' $PBS_NODEFILE not defined'
34    echo "for now, works only from a (at least) $Np nodes PBS bach session"    echo "for now, works only from a (at least) $Np nodes PBS bach session"
35    exit 8    exit 8
36  else ncpus=`wc -l $PBS_NODEFILE | awk '{print $1}'`  else nprc=`wc -l $PBS_NODEFILE | awk '{print $1}'`
37   if [ $ncpus -lt $Np ] ; then   if [ $nprc -lt $Np ] ; then
38    echo ' Nb of nodes from $PBS_NODEFILE =' $ncpus    echo ' Nb of nodes from $PBS_NODEFILE =' $nprc
39    echo "for now, works only from a (at least) $Np nodes PBS bach session"    echo "for now, works only from a (at least) $Np nodes PBS bach session"
40    exit 8    exit 8
41   fi   fi
# Line 68  then Line 69  then
69  #- find the optfile that corresponds to the currently loaded mpich module  #- find the optfile that corresponds to the currently loaded mpich module
70   . /etc/profile.d/modules.sh   . /etc/profile.d/modules.sh
71   module list -t >& tmp_compiler   module list -t >& tmp_compiler
72   compiler=`sed -n 's/mpich\///p' tmp_compiler`   compiler=`sed -n 's/mpich.*\///p' tmp_compiler`
73   case $compiler in   case $compiler in
74    'gnu')   OPTFILE="../../tools/build_options/linux_ia32_g77+mpi_aces" ;;    'gnu')   OPTFILE="../../tools/build_options/linux_ia32_g77+mpi_aces" ;;
75    'intel') OPTFILE="../../tools/build_options/linux_ia32_ifort+mpi_aces" ;;    'intel') OPTFILE="../../tools/build_options/linux_ia32_ifort+mpi_aces" ;;
# Line 152  then Line 153  then
153   tmpfil=TTT.$$   tmpfil=TTT.$$
154    
155   echo $PBS_NODEFILE   echo $PBS_NODEFILE
156   list=`cat $PBS_NODEFILE | head -$Np`   nprc=`cat $PBS_NODEFILE | uniq | wc -l`
157     if [ $nprc -ge $Np ] ; then
158      list=`cat $PBS_NODEFILE | uniq | head -$Np`
159     else
160      list=`cat $PBS_NODEFILE | head -$Np`
161     fi
162   rm -f pr_group ; touch pr_group   rm -f pr_group ; touch pr_group
163   nc=0 ; dd1=cpl ;   nc=0 ; dd1=cpl ;
164   for xx in $list   for xx in $list
# Line 192  then Line 198  then
198      /home/jmc/bin/comp_res rank_2/STDOUT.0000 results/atmSTDOUT.0000 I      /home/jmc/bin/comp_res rank_2/STDOUT.0000 results/atmSTDOUT.0000 I
199      mv -f comp_res.log comp_res.sice      mv -f comp_res.log comp_res.sice
200      echo ' '      echo ' '
201   else echo 'No Atmos output file in rank_1' ; fi   else echo 'No Atmos output file in rank_2' ; fi
202    
203  fi  fi
204    

Legend:
Removed from v.1.12  
changed lines
  Added in v.1.13

  ViewVC Help
Powered by ViewVC 1.1.22