/[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.8 by jmc, Tue Aug 15 19:13:07 2006 UTC revision 1.9 by jmc, Thu Mar 8 18:25:54 2007 UTC
# Line 19  fi Line 19  fi
19  kpr=$1  kpr=$1
20  dir=`pwd`  dir=`pwd`
21    
22  #- only works from a 3 nodes PBS bach session ( qsub -I -l nodes=3 )  #- only works from a 3 (or more) nodes PBS bach session ( qsub -I -l nodes=3 )
23  #  on ACES cluster (tested on itrda).  #  on ACES cluster (tested on itrda).
24  # need to be on one computer node,  # need to be on one computer node,
25  #  and with the correct module loaded (i.e, one of the 3):  #  and with the correct module loaded (i.e, one of the 3):
# Line 29  dir=`pwd` Line 29  dir=`pwd`
29  if test 'dummy'$PBS_NODEFILE = 'dummy'  if test 'dummy'$PBS_NODEFILE = 'dummy'
30  then  then
31    echo ' $PBS_NODEFILE not defined'    echo ' $PBS_NODEFILE not defined'
32    echo "for now, works only from a $Np nodes PBS bach session"    echo "for now, works only from a (at least) $Np nodes PBS bach session"
33    exit 8    exit 8
34  else ncpus=`wc -l $PBS_NODEFILE | awk '{print $1}'`  else ncpus=`wc -l $PBS_NODEFILE | awk '{print $1}'`
35   if test $ncpus != $Np ; then   if [ $ncpus -lt $Np ] ; then
36    echo ' Nb of nodes from $PBS_NODEFILE =' $ncpus    echo ' Nb of nodes from $PBS_NODEFILE =' $ncpus
37    echo "for now, works only from a $Np nodes PBS bach session"    echo "for now, works only from a (at least) $Np nodes PBS bach session"
38    exit 8    exit 8
39   fi   fi
40  fi  fi
# Line 149  then Line 149  then
149   tmpfil=TTT.$$   tmpfil=TTT.$$
150    
151   echo $PBS_NODEFILE   echo $PBS_NODEFILE
152   list=`cat $PBS_NODEFILE`   list=`cat $PBS_NODEFILE | head -$Np`
153   rm -f pr_group ; touch pr_group   rm -f pr_group ; touch pr_group
154   nc=0 ; dd1=cpl ;   nc=0 ; dd1=cpl ;
155   for xx in $list   for xx in $list

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.9

  ViewVC Help
Powered by ViewVC 1.1.22