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

Annotation of /MITgcm/tools/example_scripts/ACESgrid/aces_test_adm_mpi

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


Revision 1.7 - (hide annotations) (download)
Thu Apr 1 15:46:03 2010 UTC (14 years, 1 month ago) by jmc
Branch: MAIN
CVS Tags: checkpoint62g, checkpoint62f, checkpoint62e
Changes since 1.6: +3 -3 lines
change directory (simpler) of ACES daily tests.

1 jmc 1.1 #!/bin/bash
2     #
3     #PBS -q four-twelve
4     #PBS -N tst_adm
5     #PBS -l nodes=2:ppn=2
6     #PBS -e /home/jmc/test_ACES/output/tst_adm.stderr
7     #PBS -o /home/jmc/test_ACES/output/tst_adm.stdout
8 jmc 1.5
9 jmc 1.7 # $Header: /u/gcmpack/MITgcm/tools/example_scripts/ACESgrid/aces_test_adm_mpi,v 1.6 2010/01/24 18:16:47 jmc Exp $
10 jmc 1.1 # $Name: $
11    
12 jmc 1.5 # ACES-grid PBS-batch script for Adjoint MPI test using ifort (default=v8) & mpich
13    
14 jmc 1.4 if test -f /etc/profile.d/modules.sh ; then
15     . /etc/profile.d/modules.sh
16     fi
17     # Note: added "ulimit -s unlimited" in file "~/.bashrc"
18 jmc 1.5 # to pass big test (the 2 fizhi-cs-* test & adjoint tests) with MPI
19 jmc 1.4
20 jmc 1.1 umask 0022
21 jmc 1.4 #- to get case insensitive "ls" (and order of tested experiments)
22     export LC_ALL="en_US.UTF-8"
23    
24 jmc 1.7 TST_DIR="/home/jmc/test_ACES"
25     HERE=$TST_DIR/output
26 jmc 1.1 #cd $HERE
27    
28     sfx='adm'
29 jmc 1.5 module add mpich/intel
30     module add netcdf/3.6.1/icc
31     export MPI_INC_DIR='/usr/local/pkg/mpich/mpich-intel/include/'
32     OPTFILE="../tools/build_options/linux_ia32_ifort+mpi_aces"
33     #OPTFILE="$HERE/linux_ia32_ifort+mpi_aces"
34     options='-adm -mpi -match 10'
35 jmc 1.1 #- need this to get "staf":
36 jmc 1.2 export PATH="$PATH:$HOME/bin"
37 jmc 1.1
38     checkOut=1
39     #options="$options -nc" ; checkOut=0
40     #options="$options -q" ; checkOut=0
41    
42     MF=$HERE"/mf_"$sfx
43     cat $PBS_NODEFILE | sort | uniq > $MF
44     NCPU=`wc -l $MF | awk '{print $1}'`
45     EXE="mpirun -machinefile $MF -v -np $NCPU ./mitgcmuv_ad"
46    
47     gcmDIR="MITgcm_$sfx"
48     cd $TST_DIR
49     #- check for disk space:
50     dsp=`df . | tail -1 | awk '{print $5}' | sed 's/%$//'`
51     if [ $dsp -gt 99 ] ; then
52     echo 'Not enough space on this disk => do not run testreport.'
53     df .
54     exit
55     fi
56     if [ $checkOut -eq 1 ] ; then
57     if test -d $gcmDIR/CVS ; then
58 jmc 1.6 /bin/rm -rf $gcmDIR/verification/tr_aces-${sfx}_????????_?
59     # ( cd $gcmDIR/verification ; ../tools/do_tst_2+2 -clean )
60 jmc 1.1 echo "cvs update of dir $gcmDIR :"
61     ( cd $gcmDIR ; cvs -q -d :pserver:cvsanon@mitgcm.org:/u/gcmpack update -P -d )
62     else
63     echo "no dir: $gcmDIR/CVS => try a fresh check-out"
64     checkOut=2
65     fi
66     fi
67     if [ $checkOut -eq 2 ] ; then
68     if test -e $gcmDIR ; then
69     rm -rf $gcmDIR
70     fi
71     cvs -d :pserver:cvsanon@mitgcm.org:/u/gcmpack co -P -d $gcmDIR MITgcm > /dev/null 2>&1
72     # cvs co MITgcm
73     /usr/bin/find $gcmDIR -type d | xargs chmod g+rxs
74     /usr/bin/find $gcmDIR -type f | xargs chmod g+r
75     else
76     if test -e $gcmDIR/verification ; then
77     echo "dir $gcmDIR/verification exist"
78     else
79     echo "no dir $gcmDIR/verification => exit"
80     exit
81     fi
82     fi
83    
84     cd $gcmDIR/verification
85     echo ./testreport $options -of $OPTFILE -command \"$EXE\" -odir aces-$sfx
86     ./testreport $options -of $OPTFILE -command "$EXE" -odir aces-$sfx
87    

  ViewVC Help
Powered by ViewVC 1.1.22