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

Annotation of /MITgcm/tools/example_scripts/ACESgrid/itrda_gnu_test_mpi

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


Revision 1.5 - (hide annotations) (download)
Fri Dec 30 20:36:02 2005 UTC (18 years, 4 months ago) by edhill
Branch: MAIN
Changes since 1.4: +6 -2 lines
fix permissions as reported by JMC

1 edhill 1.1 #!/bin/bash
2     #
3 edhill 1.3 #PBS -q long
4 edhill 1.1 #PBS -N eh3_g77
5 edhill 1.5 #PBS -l nodes=2:ppn=1
6 edhill 1.1 #PBS -e /home/edhill/test_outp/eh3_gnu.stderr
7     #PBS -o /home/edhill/test_outp/eh3_gnu.stdout
8     #PBS -V
9    
10     if test -f /etc/profile.d/modules.sh ; then
11     . /etc/profile.d/modules.sh
12     fi
13     module add mpich/gnu
14    
15     HERE='/home/edhill/test_outp'
16     cd $HERE
17    
18     FC=g77
19     RUNIT=$HERE"/runit_"$FC
20     MF=$HERE"/mf_"$FC
21 edhill 1.5 cat $PBS_NODEFILE > $MF
22 edhill 1.1 NCPU=`wc -l $MF | awk '{print $1}'`
23     EXE="mpirun -machinefile $MF -v -np $NCPU ./mitgcmuv"
24    
25     cat << EOF > $RUNIT
26     #!/bin/bash
27    
28     $EXE
29    
30     cp STDOUT.0000 output.txt
31    
32     EOF
33     chmod a+x $RUNIT
34    
35     # cat << EOF > $HERE"/.cvspass"
36     # /1 :pserver:cvsanon@mitgcm.org:2401/u/gcmpack Ah<Zy=0=
37     # EOF
38 edhill 1.5 umask 0022
39 edhill 1.2 TDIR="/net/ds-01/scratch-5/edhill/tmp_"$FC
40 edhill 1.1 if test -e $TDIR ; then
41     rm -rf $TDIR
42     fi
43     mkdir $TDIR
44     cd $TDIR
45     cvs -d :pserver:cvsanon@mitgcm.org:/u/gcmpack co MITgcm > /dev/null 2>&1
46     # cvs co MITgcm
47 edhill 1.5 /usr/bin/find $TDIR -type d | xargs chmod g+rxs
48     /usr/bin/find $TDIR -type f | xargs chmod g+r
49    
50 edhill 1.1 cd MITgcm/verification
51     OPTFILE="../tools/build_options/linux_ia32_"$FC"+mpi_itrda"
52     # ./testreport -j 2 -mpi -of $OPTFILE -command $RUNIT -a 'edhill@mitgcm.org'
53     ./testreport -j 2 -mpi -of $OPTFILE -command $RUNIT
54    

  ViewVC Help
Powered by ViewVC 1.1.22