/[MITgcm]/MITgcm/tools/example_scripts/ACESgrid/aces_test_ifc_mpi
ViewVC logotype

Diff of /MITgcm/tools/example_scripts/ACESgrid/aces_test_ifc_mpi

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

revision 1.16 by jmc, Tue Dec 14 21:34:45 2010 UTC revision 1.17 by jmc, Fri Jan 21 05:04:38 2011 UTC
# Line 2  Line 2 
2  #  #
3  #PBS -q four-twelve  #PBS -q four-twelve
4  #PBS -N tst_ifc  #PBS -N tst_ifc
5  #PBS -l nodes=2:ppn=2  #PBS -l nodes=3:ppn=2
6  #PBS -e /home/jmc/test_ACES/output/tst_ifc.stderr  #PBS -e /home/jmc/test_ACES/output/tst_ifc.stderr
7  #PBS -o /home/jmc/test_ACES/output/tst_ifc.stdout  #PBS -o /home/jmc/test_ACES/output/tst_ifc.stdout
8    
# Line 31  sfx='ifc' Line 31  sfx='ifc'
31   export MPI_INC_DIR='/usr/local/pkg/mpich/mpich-intel/include/'   export MPI_INC_DIR='/usr/local/pkg/mpich/mpich-intel/include/'
32   OPTFILE="../tools/build_options/linux_ia32_ifort+mpi_aces"   OPTFILE="../tools/build_options/linux_ia32_ifort+mpi_aces"
33  #OPTFILE="$HERE/linux_ia32_ifort+mpi_aces"  #OPTFILE="$HERE/linux_ia32_ifort+mpi_aces"
34   options='-j 2 -mpi -match 10'   options="-j 2 -MPI 6 -mf $PBS_NODEFILE"
35     EXE="mpirun -machinefile TR_MFILE -v -np TR_NPROC ./mitgcmuv"
36    
37    #- keep a copy of MPI_MFILE:
38    cp -p $PBS_NODEFILE $HERE"/mf_"$sfx
39    
40  checkOut=1  checkOut=1
41  #options="$options -nc" ; checkOut=0  #options="$options -nc" ; checkOut=0
42  #options="$options -q"  ; checkOut=0  #options="$options -q"  ; checkOut=0
43    
 MF=$HERE"/mf_"$sfx  
 cat $PBS_NODEFILE | sort | uniq > $MF  
 NCPU=`wc -l $MF | awk '{print $1}'`  
 EXE="mpirun -machinefile $MF -v -np $NCPU ./mitgcmuv"  
   
44  gcmDIR="MITgcm_$sfx"  gcmDIR="MITgcm_$sfx"
45  cd $TST_DIR  cd $TST_DIR
46  #- check for disk space:  #- check for disk space:
# Line 66  if [ $checkOut -eq 2 ] ; then Line 65  if [ $checkOut -eq 2 ] ; then
65    if test -e $gcmDIR ; then    if test -e $gcmDIR ; then
66       rm -rf $gcmDIR       rm -rf $gcmDIR
67    fi    fi
   cvs -d :pserver:cvsanon@mitgcm.org:/u/gcmpack co -P -d $gcmDIR MITgcm > /dev/null 2>&1  
68  # cvs co MITgcm  # cvs co MITgcm
69      cvs -d :pserver:cvsanon@mitgcm.org:/u/gcmpack co -P -d $gcmDIR MITgcm > /dev/null 2>&1
70    /usr/bin/find $gcmDIR -type d | xargs chmod g+rxs    /usr/bin/find $gcmDIR -type d | xargs chmod g+rxs
71    /usr/bin/find $gcmDIR -type f | xargs chmod g+r    /usr/bin/find $gcmDIR -type f | xargs chmod g+r
72  else  else
# Line 83  cd $gcmDIR/verification Line 82  cd $gcmDIR/verification
82  echo ./testreport $options -of $OPTFILE -command \"$EXE\" -odir aces-$sfx  echo ./testreport $options -of $OPTFILE -command \"$EXE\" -odir aces-$sfx
83  ./testreport $options -of $OPTFILE -command "$EXE" -odir aces-$sfx  ./testreport $options -of $OPTFILE -command "$EXE" -odir aces-$sfx
84    
85  echo ../tools/do_tst_2+2 -mpi -exe \"$EXE\" -o aces-$sfx -a NONE  echo ''
86  ../tools/do_tst_2+2 -mpi -exe "$EXE" -o aces-$sfx -a NONE  echo ../tools/do_tst_2+2 -mpi -mf $PBS_NODEFILE -exe \"$EXE\" -o aces-$sfx -a NONE
87    ../tools/do_tst_2+2 -mpi -mf $PBS_NODEFILE -exe "$EXE" -o aces-$sfx -a NONE
88    

Legend:
Removed from v.1.16  
changed lines
  Added in v.1.17

  ViewVC Help
Powered by ViewVC 1.1.22