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

Contents 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.10 - (show annotations) (download)
Fri Jan 21 17:17:28 2011 UTC (13 years, 3 months ago) by jmc
Branch: MAIN
CVS Tags: checkpoint63a, checkpoint63, checkpoint62s, checkpoint62r, checkpoint62w, checkpoint62v, checkpoint62u, checkpoint62t, checkpoint62z, checkpoint62y, checkpoint62x
Changes since 1.9: +7 -8 lines
-remove output files after each test-exp
-switch to new testreport mpi option which allows different number of procs
 for each experiment.

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
9 # $Header: /u/gcmpack/MITgcm/tools/example_scripts/ACESgrid/aces_test_adm_mpi,v 1.9 2010/12/14 21:34:45 jmc Exp $
10 # $Name: $
11
12 # ACES-grid PBS-batch script for Adjoint MPI test using ifort (default=v8) & mpich
13
14 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 # to pass big test (the 2 fizhi-cs-* test & adjoint tests) with MPI
19
20 umask 0022
21 #- to get case insensitive "ls" (and order of tested experiments)
22 export LC_ALL="en_US.UTF-8"
23
24 TST_DIR="/home/jmc/test_ACES"
25 HERE=$TST_DIR/output
26 #cd $HERE
27
28 sfx='adm'
29 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 -do -MPI 4 -mf $PBS_NODEFILE"
35 EXE="mpirun -machinefile TR_MFILE -v -np TR_NPROC ./mitgcmuv_ad"
36 #- need this to get "staf":
37 export PATH="$PATH:$HOME/bin"
38
39 #- keep a copy of MPI_MFILE:
40 cp -p $PBS_NODEFILE $HERE"/mf_"$sfx
41
42 checkOut=1
43 #options="$options -nc" ; checkOut=0
44 #options="$options -q" ; checkOut=0
45
46 gcmDIR="MITgcm_$sfx"
47 cd $TST_DIR
48 #- check for disk space:
49 dsp=`df -P . | tail -1 | awk '{print $5}' | sed 's/%$//'`
50 if [ $dsp -gt 99 ] ; then
51 echo 'Not enough space on this disk => do not run testreport.'
52 df .
53 exit
54 fi
55 if [ $checkOut -eq 1 ] ; then
56 if test -d $gcmDIR/CVS ; then
57 /bin/rm -rf $gcmDIR/verification/tr_aces-${sfx}_????????_?
58 # ( cd $gcmDIR/verification ; ../tools/do_tst_2+2 -clean )
59 echo "cvs update of dir $gcmDIR :"
60 ( cd $gcmDIR ; cvs -q -d :pserver:cvsanon@mitgcm.org:/u/gcmpack update -P -d ) 2>&1
61 else
62 echo "no dir: $gcmDIR/CVS => try a fresh check-out"
63 checkOut=2
64 fi
65 fi
66 if [ $checkOut -eq 2 ] ; then
67 if test -e $gcmDIR ; then
68 rm -rf $gcmDIR
69 fi
70 # cvs co MITgcm
71 cvs -d :pserver:cvsanon@mitgcm.org:/u/gcmpack co -P -d $gcmDIR MITgcm > /dev/null 2>&1
72 /usr/bin/find $gcmDIR -type d | xargs chmod g+rxs
73 /usr/bin/find $gcmDIR -type f | xargs chmod g+r
74 else
75 if test -e $gcmDIR/verification ; then
76 echo "dir $gcmDIR/verification exist"
77 else
78 echo "no dir $gcmDIR/verification => exit"
79 exit
80 fi
81 fi
82
83 cd $gcmDIR/verification
84 echo ./testreport $options -of $OPTFILE -command \"$EXE\" -odir aces-$sfx
85 ./testreport $options -of $OPTFILE -command "$EXE" -odir aces-$sfx

  ViewVC Help
Powered by ViewVC 1.1.22