/[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.5 - (show annotations) (download)
Fri Jun 26 16:13:17 2009 UTC (14 years, 10 months ago) by jmc
Branch: MAIN
CVS Tags: checkpoint62, checkpoint62a, checkpoint61v, checkpoint61w, checkpoint61t, checkpoint61u, checkpoint61s, checkpoint61z, checkpoint61x, checkpoint61y
Changes since 1.4: +11 -6 lines
adapted to new linux_ia32_ifort+mpi_aces optfile

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.4 2009/06/16 21:32:22 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/gcm_tests"
25 HERE='/home/jmc/test_ACES/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 . | 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 echo "cvs update of dir $gcmDIR :"
59 ( cd $gcmDIR ; cvs -q -d :pserver:cvsanon@mitgcm.org:/u/gcmpack update -P -d )
60 /bin/rm -rf $gcmDIR/verification/tr_aces-${sfx}_????????_?
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 -d :pserver:cvsanon@mitgcm.org:/u/gcmpack co -P -d $gcmDIR MITgcm > /dev/null 2>&1
71 # cvs co MITgcm
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