/[MITgcm]/MITgcm_contrib/test_scripts/other/testing_loc
ViewVC logotype

Contents of /MITgcm_contrib/test_scripts/other/testing_loc

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


Revision 1.5 - (show annotations) (download)
Tue Sep 6 13:46:06 2011 UTC (14 years, 11 months ago) by jmc
Branch: MAIN
Changes since 1.4: +6 -4 lines
updated (use standard optfile: linux_amd64_ifort11)

1 #! /usr/bin/env bash
2
3 # $Header: /u/gcmpack/MITgcm_contrib/test_scripts/other/testing_loc,v 1.4 2011/08/03 22:52:47 jmc Exp $
4 # $Name: $
5
6 #echo 'source ~jmc/bin/intel_v11.sh'
7 #source ~jmc/bin/intel_v11.sh
8 echo 'source ~jmc/bin/intel_v12.sh'
9 source ~jmc/bin/intel_v12.sh
10 tst_list='mp2 ur4'
11 #tst_list='ur4'
12 #tst_list='mp2'
13
14 for tt in $tst_list
15 do
16
17 echo "=========================================================================="
18 set -x
19 rm -f tr_clean_$tt.log
20 #- cleanup previous restart:
21 ( cd MITgcm_$tt/verification ; ../tools/do_tst_2+2 -clean > ../../tr_clean_$tt.log 2>&1 )
22 #- cleanup previous test:
23 ( cd MITgcm_$tt/verification ; testreport -clean >> ../../tr_clean_$tt.log 2>&1 )
24
25 set +x
26 echo ""
27
28 echo "=========================================================================="
29 set -x
30 ( cd MITgcm_$tt ; cvs update -P -d >> ../tr_clean_$tt.log 2>&1 )
31 set +x
32 echo ""
33
34 echo "=========================================================================="
35
36 mv -f tr_run_$tt.log tr_run_$tt.log_bak
37 cd MITgcm_$tt/verification
38
39 date
40 # verbose mode:
41 set -x
42 pwd
43
44 if test $tt = 'mp2' ; then
45
46 export OMP_NUM_THREADS=2
47 export KMP_STACKSIZE=400m
48
49 testreport -MPI 2 -mth -of ../tools/build_options/linux_amd64_ifort11 \
50 -devel -command='mpirun -v -np TR_NPROC ./mitgcmuv' \
51 -a jmc@mitgcm.org -nc > ../../tr_run_$tt.log 2>&1
52
53 #unset echo
54 sed -n "/ email /,$ p" ../../tr_run_$tt.log
55
56 #- test restart:
57 echo '' >> ../../tr_run_$tt.log 2>&1
58 ../tools/do_tst_2+2 -mpi -exe 'mpirun -v -np TR_NPROC ./mitgcmuv' \
59 -a jmc@mitgcm.org >> ../../tr_run_$tt.log 2>&1
60
61 fi
62
63 if test $tt = 'ur4' ; then
64
65 if test -e tr_out.txt ; then /bin/rm -f tr_out.sav ; mv tr_out.txt tr_out.sav ; fi
66
67 testreport -MPI 3 -ur4 -of ../tools/build_options/linux_amd64_ifort11 \
68 -devel -nc -ef -syntax-only -obj -dd > ../../tr_run_$tt.log 2>&1
69
70 testreport -MPI 3 -ur4 -of ../tools/build_options/linux_amd64_ifort11 \
71 -devel -nc -match 5 -command='mpirun -v -np TR_NPROC ./mitgcmuv' \
72 -a jmc@mitgcm.org >> ../../tr_run_$tt.log 2>&1
73
74 sed -n "/ email /,$ p" ../../tr_run_$tt.log
75
76 #- test restart:
77 echo '' >> ../../tr_run_$tt.log 2>&1
78 ../tools/do_tst_2+2 -mpi -exe 'mpirun -v -np TR_NPROC ./mitgcmuv' \
79 -a jmc@mitgcm.org >> ../../tr_run_$tt.log 2>&1
80
81 fi
82
83 set +x
84 cd ../..
85
86 done

  ViewVC Help
Powered by ViewVC 1.1.22