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

Diff of /MITgcm_contrib/test_scripts/other/testing_loc

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

revision 1.1 by jmc, Wed Apr 27 21:26:07 2011 UTC revision 1.6 by jmc, Fri Sep 30 20:39:51 2011 UTC
# Line 3  Line 3 
3  # $Header$  # $Header$
4  # $Name$  # $Name$
5    
6  echo 'source ~jmc/bin/intel_64.csh'  #echo 'source ~jmc/bin/intel_v11.sh'
7  source ~jmc/bin/intel_64.sh  #source ~jmc/bin/intel_v11.sh
8  tst_list='mp2 ur4'   echo 'source ~jmc/bin/intel_v12.sh'
9  #tst_list='ur4'   source ~jmc/bin/intel_v12.sh
10  #tst_list='mp2'  
11    if test $# = 0
12    then
13      tst_list='mp2 ur4 adm'
14    else
15      tst_list=$*
16    fi
17    
18  for tt in $tst_list  for tt in $tst_list
19  do  do
# Line 15  do Line 21  do
21    echo "=========================================================================="    echo "=========================================================================="
22    set -x    set -x
23    rm -f tr_clean_$tt.log    rm -f tr_clean_$tt.log
24    if test $tt != 'adm' ; then
25    #- cleanup previous restart:    #- cleanup previous restart:
26    ( cd MITgcm_$tt/verification ; ../tools/do_tst_2+2 -clean > ../../tr_clean_$tt.log 2>&1 )    ( cd MITgcm_$tt/verification ; ../tools/do_tst_2+2 -clean > ../../tr_clean_$tt.log 2>&1 )
27    #- cleanup previous test:    #- cleanup previous test:
28    ( cd MITgcm_$tt/verification ; testreport -clean >> ../../tr_clean_$tt.log 2>&1 )    ( cd MITgcm_$tt/verification ; testreport -clean >> ../../tr_clean_$tt.log 2>&1 )
29    else
30      ( cd MITgcm_$tt/verification ; testreport -adm -clean > ../../tr_clean_$tt.log 2>&1 )
31    fi
32    set +x    set +x
33    echo ""    echo ""
34    
# Line 39  do Line 48  do
48    set -x    set -x
49    pwd    pwd
50    
51    if test $tt = 'adm' ; then
52      if test -e tr_out.txt ; then /bin/rm -f tr_out.sav ; mv tr_out.txt tr_out.sav ; fi
53    
54      testreport -MPI 3 -adm -of ../tools/build_options/linux_amd64_ifort11 \
55       -devel -nc -ef -syntax-only -obj -dd > ../../tr_run_$tt.log 2>&1
56    
57      testreport -MPI 3 -adm -of ../tools/build_options/linux_amd64_ifort11 \
58       -devel -command='mpirun -v -np TR_NPROC ./mitgcmuv_ad' \
59       -a jmc@mitgcm.org -nc >> ../../tr_run_$tt.log 2>&1
60    
61      #unset echo
62      sed -n "/ email /,$ p" ../../tr_run_$tt.log
63    fi
64    
65  if test $tt = 'mp2' ; then  if test $tt = 'mp2' ; then
66    
67    export OMP_NUM_THREADS=2    export OMP_NUM_THREADS=2
68    export KMP_STACKSIZE=400m    export KMP_STACKSIZE=400m
69    
70    testreport -MPI 2 -mth -of ../tools/build_options/linux_amd64_ifort+mpi_loc \    if test -e tr_out.txt ; then /bin/rm -f tr_out.sav ; mv tr_out.txt tr_out.sav ; fi
71     -command='mpirun -v -np TR_NPROC ./mitgcmuv' \  
72     -a jmc@mitgcm.org -nc > ../../tr_run_$tt.log 2>&1    testreport -MPI 2 -mth -of ../tools/build_options/linux_amd64_ifort11 \
73       -devel -nc -ef -syntax-only -obj -dd > ../../tr_run_$tt.log 2>&1
74    
75      testreport -MPI 2 -mth -of ../tools/build_options/linux_amd64_ifort11 \
76       -devel -command='mpirun -v -np TR_NPROC ./mitgcmuv' \
77       -a jmc@mitgcm.org -nc >> ../../tr_run_$tt.log 2>&1
78    
79    #unset echo    #unset echo
80    sed -n "/ email /,$ p" ../../tr_run_$tt.log    sed -n "/ email /,$ p" ../../tr_run_$tt.log
# Line 60  fi Line 88  fi
88    
89  if test $tt = 'ur4' ; then  if test $tt = 'ur4' ; then
90    
91    testreport -MPI 3 -ur4 -of ../../linux_amd64_ifort+mpi_chk \    if test -e tr_out.txt ; then /bin/rm -f tr_out.sav ; mv tr_out.txt tr_out.sav ; fi
    -nc -dd -nr > ../../tr_run_$tt.log 2>&1  
92    
93    set +x    testreport -MPI 3 -ur4 -of ../tools/build_options/linux_amd64_ifort11 \
94    echo '' ; echo ' remove */build/*.o */mitgcmuv'     -devel -nc -ef -syntax-only -obj -dd > ../../tr_run_$tt.log 2>&1
   /bin/rm -f */build/*.o  
   /bin/rm -f */build/mitgcmuv  
   echo ''  
   set -x  
95    
96    testreport -MPI 3 -ur4 -of ../../linux_amd64_ifort+mpi_chk \    testreport -MPI 3 -ur4 -of ../tools/build_options/linux_amd64_ifort11 \
97     -match 5 -command='mpirun -v -np TR_NPROC ./mitgcmuv' \     -devel -nc -match 5 -command='mpirun -v -np TR_NPROC ./mitgcmuv' \
98     -a jmc@mitgcm.org -q >> ../../tr_run_$tt.log 2>&1     -a jmc@mitgcm.org >> ../../tr_run_$tt.log 2>&1
99    
100    sed -n "/ email /,$ p" ../../tr_run_$tt.log    sed -n "/ email /,$ p" ../../tr_run_$tt.log
101    

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.6

  ViewVC Help
Powered by ViewVC 1.1.22