/[MITgcm]/MITgcm/tools/example_scripts/cg01_g77_test_mpi
ViewVC logotype

Contents of /MITgcm/tools/example_scripts/cg01_g77_test_mpi

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


Revision 1.1 - (show annotations) (download)
Thu Sep 18 17:03:02 2003 UTC (20 years, 7 months ago) by edhill
Branch: MAIN
CVS Tags: checkpoint51k_post, checkpoint53f_post, checkpoint54a_pre, checkpoint55c_post, checkpoint53b_pre, checkpoint51l_post, checkpoint51j_post, checkpoint52l_pre, checkpoint52e_pre, hrcube4, hrcube5, checkpoint52j_post, checkpoint54b_post, checkpoint52e_post, checkpoint51n_pre, checkpoint52d_pre, checkpoint53c_post, checkpoint53d_post, checkpoint55d_pre, checkpoint55j_post, branchpoint-genmake2, checkpoint52j_pre, checkpoint54a_post, branch-netcdf, checkpoint55h_post, checkpoint51r_post, checkpoint52b_pre, checkpoint52n_post, checkpoint51o_pre, checkpoint51i_post, checkpoint54d_post, checkpoint54e_post, checkpoint55b_post, checkpoint51l_pre, checkpoint52m_post, checkpoint53a_post, checkpoint55a_post, checkpoint53b_post, checkpoint55g_post, checkpoint51o_post, checkpoint55f_post, checkpoint51q_post, checkpoint52l_post, checkpoint52k_post, checkpoint55, checkpoint54, checkpoint56, checkpoint53, checkpoint52, checkpoint52d_post, checkpoint52a_post, checkpoint52b_post, checkpoint53g_post, checkpoint52f_post, checkpoint52c_post, checkpoint51h_pre, checkpoint51g_post, ecco_c52_e35, checkpoint54f_post, checkpoint51f_post, checkpoint52a_pre, checkpoint51m_post, checkpoint51t_post, checkpoint53d_pre, checkpoint55e_post, checkpoint54c_post, checkpoint52i_post, checkpoint51p_post, checkpoint51n_post, checkpoint55i_post, checkpoint51i_pre, checkpoint52i_pre, checkpoint51u_post, checkpoint52h_pre, checkpoint52f_pre, hrcube_1, hrcube_2, hrcube_3, checkpoint56a_post, checkpoint51s_post, checkpoint55d_post
Branch point for: netcdf-sm0, branch-genmake2, branch-nonh, tg2-branch, checkpoint51n_branch
initial checkin

1 #!/bin/bash
2 #
3 # o -N Job Name
4 #PBS -N eh3_g77
5 #
6 # o -l ask for 3 nodes, each with the attribute "p4".
7 #PBS -l nodes=2:p4
8 #
9 # o Where to write output
10 #PBS -e /cluster/home/edhill/err_g77
11 #PBS -o /cluster/home/edhill/out_g77
12 #
13 # o Export all my environment variables to the job
14 #PBS -V
15 #
16
17 VENDOR=g77
18 MF="mf_"$VENDOR
19 RUNIT="runit_"$VENDOR
20 cd ~edhill
21 HERE=`pwd`
22 cat $PBS_NODEFILE > $MF
23 NCPU=`wc -l $MF | awk '{print $1}'`
24 MPI="/usr/local/pkg/mpi/mpi-1.2.4..8a-gm-1.5/"$VENDOR"/bin/mpirun.ch_gm"
25 EXE="$MPI -machinefile $HERE/$MF --gm-kill 5 -v -np $NCPU ./mitgcmuv"
26
27 cat << EOF > $RUNIT
28 #!/bin/bash
29
30 $EXE
31
32 cp STDOUT.0000 output.txt
33
34 EOF
35 chmod a+x $RUNIT
36
37 COMMAND="$HERE/$RUNIT"
38
39 cat << EOF > $HERE"/.cvspass"
40 /1 :pserver:cvsanon@mitgcm.org:2401/usr/local/gcmpack Ah<Zy=0=
41 EOF
42 TDIR="tmp_"$VENDOR
43 if test -e $TDIR ; then
44 rm -rf $TDIR
45 fi
46 mkdir $TDIR
47 cd $TDIR
48 cvs -d :pserver:cvsanon@mitgcm.org:/usr/local/gcmpack co MITgcm
49 cd MITgcm/verification
50 OPTFILE="../tools/build_options/linux_"$VENDOR"_cg01_mpi"
51 ./testreport -mpi -of $OPTFILE -command $COMMAND

  ViewVC Help
Powered by ViewVC 1.1.22