/[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.4 by jmc, Thu Dec 6 03:32:12 2007 UTC revision 1.5 by jmc, Fri Jan 25 15:17:20 2008 UTC
# Line 5  Line 5 
5  #PBS -l nodes=2:ppn=2  #PBS -l nodes=2: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
 # #PBS -V  
 #  ^- commented out => do not export env. variable !  
 #  since head node environment (& module) is too different from computer node  
8    
9  # $Header$  # $Header$
10  # $Name$  # $Name$
11    
 if test -f /etc/profile.d/modules.sh ; then  
     . /etc/profile.d/modules.sh  
 fi  
 module add mpich/intel  
   
12  umask 0022  umask 0022
13  TST_DIR="/home/jmc/test_ACES/gcm_tests"  TST_DIR="/home/jmc/test_ACES/gcm_tests"
14  HERE='/home/jmc/test_ACES/output'  HERE='/home/jmc/test_ACES/output'
15  cd $HERE  cd $HERE
16    
17  MC=10  if test -f /etc/profile.d/modules.sh ; then
18  FC=ifort      . /etc/profile.d/modules.sh
19  MF=$HERE"/mf_"$FC  fi
20    
21    sfx='ifc'
22    module add mpich/intel
23    OPTFILE="../tools/build_options/linux_ia32_ifort+mpi_aces"
24    options='-j 2 -mpi -match 10'
25    
26    MF=$HERE"/mf_"$sfx
27  cat $PBS_NODEFILE | sort | uniq > $MF  cat $PBS_NODEFILE | sort | uniq > $MF
28  NCPU=`wc -l $MF | awk '{print $1}'`  NCPU=`wc -l $MF | awk '{print $1}'`
29  EXE="mpirun -machinefile $MF -v -np $NCPU ./mitgcmuv"  EXE="mpirun -machinefile $MF -v -np $NCPU ./mitgcmuv"
# Line 32  EXE="mpirun -machinefile $MF -v -np $NCP Line 31  EXE="mpirun -machinefile $MF -v -np $NCP
31  # cat << EOF > $HERE"/.cvspass"  # cat << EOF > $HERE"/.cvspass"
32  # /1 :pserver:cvsanon@mitgcm.org:2401/u/gcmpack Ah<Zy=0=  # /1 :pserver:cvsanon@mitgcm.org:2401/u/gcmpack Ah<Zy=0=
33  # EOF  # EOF
34  tmpDIR=${TST_DIR}"/tmp_ifc"  gcmDIR="MITgcm_$sfx"
35  if test -e $tmpDIR ; then  cd $TST_DIR
36      rm -rf $tmpDIR  if test -e $gcmDIR ; then
37        rm -rf $gcmDIR
38  fi  fi
39  mkdir $tmpDIR  cvs -d :pserver:cvsanon@mitgcm.org:/u/gcmpack co -P -d $gcmDIR MITgcm > /dev/null 2>&1
 cd $tmpDIR  
 cvs -d :pserver:cvsanon@mitgcm.org:/u/gcmpack co -P MITgcm > /dev/null 2>&1  
40  #  cvs co MITgcm  #  cvs co MITgcm
41  /usr/bin/find $tmpDIR -type d | xargs chmod g+rxs  /usr/bin/find $gcmDIR -type d | xargs chmod g+rxs
42  /usr/bin/find $tmpDIR -type f | xargs chmod g+r  /usr/bin/find $gcmDIR -type f | xargs chmod g+r
43    
44  cd MITgcm/verification  cd $gcmDIR/verification
45  OPTFILE="../tools/build_options/linux_ia32_"$FC"+mpi_aces"  echo ./testreport $options -of $OPTFILE -command "$EXE" -odir aces-$sfx
46  echo ./testreport -j 2 -mpi -match $MC -of $OPTFILE -command "$EXE" -odir aces-ifc  ./testreport $options -of $OPTFILE -command "$EXE" -odir aces-$sfx
 ./testreport -j 2 -mpi -match $MC -of $OPTFILE -command "$EXE" -odir aces-ifc  
47    

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

  ViewVC Help
Powered by ViewVC 1.1.22