/[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.8 - (hide annotations) (download)
Thu Aug 28 18:35:42 2008 UTC (15 years, 8 months ago) by jmc
Branch: MAIN
CVS Tags: checkpoint61f, checkpoint61g, checkpoint61d, checkpoint61e, checkpoint61c, checkpoint61h, checkpoint61i
Changes since 1.7: +3 -3 lines
minor changes

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    
9 jmc 1.8 # $Header: /u/gcmpack/MITgcm/tools/example_scripts/ACESgrid/aces_test_ifc_mpi,v 1.7 2008/08/28 03:59:20 jmc Exp $
10 jmc 1.1 # $Name: $
11    
12 jmc 1.5 umask 0022
13     TST_DIR="/home/jmc/test_ACES/gcm_tests"
14     HERE='/home/jmc/test_ACES/output'
15     cd $HERE
16    
17 jmc 1.1 if test -f /etc/profile.d/modules.sh ; then
18     . /etc/profile.d/modules.sh
19     fi
20 jmc 1.5
21     sfx='ifc'
22 jmc 1.1 module add mpich/intel
23 jmc 1.5 OPTFILE="../tools/build_options/linux_ia32_ifort+mpi_aces"
24     options='-j 2 -mpi -match 10'
25 jmc 1.1
26 jmc 1.6 checkOut=1
27     #options="$options -nc" ; checkOut=0
28     #options="$options -q" ; checkOut=0
29    
30 jmc 1.5 MF=$HERE"/mf_"$sfx
31 jmc 1.1 cat $PBS_NODEFILE | sort | uniq > $MF
32     NCPU=`wc -l $MF | awk '{print $1}'`
33     EXE="mpirun -machinefile $MF -v -np $NCPU ./mitgcmuv"
34    
35     # cat << EOF > $HERE"/.cvspass"
36     # /1 :pserver:cvsanon@mitgcm.org:2401/u/gcmpack Ah<Zy=0=
37     # EOF
38 jmc 1.5 gcmDIR="MITgcm_$sfx"
39     cd $TST_DIR
40 jmc 1.7 #- check for disk space:
41     dsp=`df . | tail -1 | awk '{print $5}' | sed 's/%$//'`
42     if [ $dsp -gt 99 ] ; then
43     echo 'Not enough space on this disk => do not run testreport.'
44     df .
45     exit
46     fi
47     if [ $checkOut -eq 1 ] ; then
48     if test -d $gcmDIR/CVS ; then
49     echo "cvs update of dir $gcmDIR :"
50     ( cd $gcmDIR ; cvs -q -d :pserver:cvsanon@mitgcm.org:/u/gcmpack update -P -d )
51     /bin/rm -rf $gcmDIR/verification/tr_aces-${sfx}_????????_?
52     else
53     echo "no dir: $gcmDIR/CVS => try a fresh check-out"
54     checkOut=2
55     fi
56     fi
57     if [ $checkOut -eq 2 ] ; then
58 jmc 1.6 if test -e $gcmDIR ; then
59     rm -rf $gcmDIR
60     fi
61     cvs -d :pserver:cvsanon@mitgcm.org:/u/gcmpack co -P -d $gcmDIR MITgcm > /dev/null 2>&1
62     # cvs co MITgcm
63     /usr/bin/find $gcmDIR -type d | xargs chmod g+rxs
64     /usr/bin/find $gcmDIR -type f | xargs chmod g+r
65     else
66     if test -e $gcmDIR/verification ; then
67 jmc 1.8 echo "dir $gcmDIR/verification exist"
68 jmc 1.6 else
69     echo "no dir $gcmDIR/verification => exit"
70     exit
71     fi
72 jmc 1.1 fi
73    
74 jmc 1.5 cd $gcmDIR/verification
75 jmc 1.8 echo ./testreport $options -of $OPTFILE -command \"$EXE\" -odir aces-$sfx
76 jmc 1.5 ./testreport $options -of $OPTFILE -command "$EXE" -odir aces-$sfx
77 jmc 1.1

  ViewVC Help
Powered by ViewVC 1.1.22