/[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.9 - (show annotations) (download)
Tue Dec 14 21:34:45 2010 UTC (13 years, 5 months ago) by jmc
Branch: MAIN
CVS Tags: checkpoint62q, checkpoint62p
Changes since 1.8: +2 -2 lines
uses "df -P ." instead of just "df ." (to work on geo cluster)

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.8 2010/05/20 19:22:30 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 -mpi -match 10'
35 #- need this to get "staf":
36 export PATH="$PATH:$HOME/bin"
37
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 -P . | 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 /bin/rm -rf $gcmDIR/verification/tr_aces-${sfx}_????????_?
59 # ( cd $gcmDIR/verification ; ../tools/do_tst_2+2 -clean )
60 echo "cvs update of dir $gcmDIR :"
61 ( cd $gcmDIR ; cvs -q -d :pserver:cvsanon@mitgcm.org:/u/gcmpack update -P -d ) 2>&1
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

  ViewVC Help
Powered by ViewVC 1.1.22