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

Annotation of /MITgcm/tools/example_scripts/ACESgrid/aces_test_ifc_mpi

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


Revision 1.4 - (hide annotations) (download)
Thu Dec 6 03:32:12 2007 UTC (16 years, 5 months ago) by jmc
Branch: MAIN
CVS Tags: checkpoint59m, checkpoint59l
Changes since 1.3: +4 -4 lines
- use shorter queue ("four-twelve" = 12.h instead of "long = 24.h)
- specify output dir as testreport argument

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

  ViewVC Help
Powered by ViewVC 1.1.22