- Timestamp:
- 12/12/16 13:41:51 (7 years ago)
- Location:
- configs/testing/bash
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
configs/testing/bash/X64_CURIE.sh
r502 r510 68 68 cd \${BRIDGE_MSUB_PWD} 69 69 70 module purge 71 module load licsrv/intel 72 module load c/intel/14.0.3.174 73 module load c++/intel/14.0.3.174 74 module load fortran/intel/14.0.3.174 75 module load mkl/14.0.3.174 76 module load idb/14.0.3.174 77 module load intel/14.0.3.174 78 module load mpi/bullxmpi/1.2.8.4 79 module load netcdf/4.3.3.1_hdf5_parallel 70 $(cat $ROOT/DYNAMICO/arch/arch-X64_CURIE.env) 80 71 81 72 rm -rf gcm.log logs *.nc netcdf … … 122 113 cd \${BRIDGE_MSUB_PWD}/.. 123 114 124 module purge 125 module load licsrv/intel 126 module load c/intel/14.0.3.174 127 module load c++/intel/14.0.3.174 128 module load fortran/intel/14.0.3.174 129 module load mkl/14.0.3.174 130 module load idb/14.0.3.174 131 module load intel/14.0.3.174 132 module load mpi/bullxmpi/1.2.8.4 133 module load netcdf/4.3.3.1_hdf5_parallel 115 $(cat $ROOT/DYNAMICO/arch/arch-X64_CURIE.env) 134 116 module load python 135 117 -
configs/testing/bash/create_runs.sh
r506 r510 81 81 } 82 82 83 #------------------------------------- DCMIP 3.1 ----------------------------------83 #------------------------------------- DCMIP 2012 --------------------------------- 84 84 85 85 function rundef_DCMIP(){ … … 88 88 setvar radius 6.37122e6 g 9.80616 kappa 0.2857143 cpp 1004.5 preff 1e5 89 89 setvar nitergdiv 2 nitergrot 2 niterdivgrad 2 tau_graddiv 90 } 91 92 function rundef_DCMIP21() { # NBP TAU 93 NBP=$1 ; TAU=$2 94 rundef_DCMIP $NBP 95 setvar omega 0. llm 60 disvert ncar ncar_T0 300 ncar_p0 1e5 ncar_disvert_c 1 ncar_dz 500 96 setvar tau_graddiv $TAU tau_gradrot $TAU tau_divgrad $TAU 97 setvar scale_factor 500 write_period 50000 run_length 3.6e6 etat0 dcmip2_schaer_noshear 98 setvar rayleigh_friction_type dcmip2_schaer_noshear rayleigh_friction_tau 12500 90 99 } 91 100 … … 98 107 setvar scale_factor 125 write_period 7500 run_length 4.5e5 etat0 dcmip3 99 108 } 109 100 110 function rundef_DCMIP41() { # NBP TAU 101 111 NBP=$1 ; TAU=$2 … … 107 117 } 108 118 119 function rundef_DCMIP51() { # NBP TAU 120 NBP=$1 ; TAU=$2 121 rundef_DCMIP $NBP 122 setvar omega 7.292e-5 llm 30 disvert ncarl30 nqtot 1 itau_adv 3 123 setvar tau_graddiv $TAU tau_gradrot $TAU tau_divgrad $TAU 124 setvar write_period 7200 run_length 864000 etat0 dcmip5 125 setvar physics dcmip dcmip_physics 0 itau_physics 6 126 } 127 128 function job_DCMIP21() { # EXEC NBP 129 job_$1_$2 DCMIP21_$1 # e.g. job_mpi_80 DCMIP31_mpi 130 } 109 131 function job_DCMIP31() { # EXEC NBP 110 132 job_$1_$2 DCMIP31_$1 # e.g. job_mpi_80 DCMIP31_mpi … … 113 135 job_$1_$2 DCMIP41_$1 114 136 } 137 function job_DCMIP51() { # EXEC NBP 138 job_$1_$2 DCMIP51_$1 139 } 115 140 116 141 #----------------------------- END ---------------------------- 117 142 118 function main()143 function basic() 119 144 { 120 145 rm -rf RUNS 121 146 mkdir RUNS 122 147 cd RUNS 148 # Williamson 1991 149 # create_exp serial W91 two_degree 24h 40 5000 # nbp tau 150 # create_exp mpi W91 two_degree 24h 40 5000 # nbp tau 151 # DCMIP 2012 152 create_exp mpi DCMIP21 two_degree 100s 40 90000 # nbp tau 153 create_exp mpi DCMIP31 two_degree 60s 40 90000 # nbp tau 154 create_exp mpi DCMIP41 two_degree 24h 40 10000 # nbp tau 155 # create_exp mpi DCMIP51 one_degree 2h 80 10000 # nbp tau 156 } 157 158 function main() 159 { 123 160 # the number associated to each run.def parameter is used to sort the lines and order them in a logical way 124 161 declare -A idx … … 127 164 order 300 nbp optim_it nsplit_i nsplit_j llm disvert ncar_disvert_c ncar_dz ncar_T0 ncar_p0 128 165 order 400 caldyn_eta time_scheme caldyn_conserv dt nqtot itau_adv 129 order 500 nitergdiv tau_graddiv nitergrot tau_gradrot niterdivgrad tau_divgrad 166 order 500 nitergdiv tau_graddiv nitergrot tau_gradrot niterdivgrad tau_divgrad rayleigh_friction_type rayleigh_friction_tau 167 order 600 physics dcmip_physics itau_physics 130 168 order 700 run_length write_period etat0 dcmip4_testcase 131 # Williamson 1991 132 # create_exp serial W91 40 5000 # nbp tau 133 # create_exp mpi W91 40 5000 # nbp tau 134 # DCMIP 2012 135 create_exp mpi DCMIP31 two_degree 60s 40 90000 # nbp tau 136 create_exp mpi DCMIP41 two_degree 24h 40 10000 # nbp tau 169 170 basic 137 171 } 138 172 -
configs/testing/bash/post.sh
r502 r510 1 #!/bin/bash 1 B1;2c#!/bin/bash 2 3 function to_latex() { 4 echo $1 | sed 's/_/\\_/g' 5 } 6 7 function svn_info() { 8 cd $1 9 svn info | grep URL 10 echo '\\' 11 svn info | grep Revision 12 echo '\\' 13 } 14 15 function abstract() 16 { 17 cd $ROOT 18 hostname ; echo '\\' 19 pwd ; echo '\\' 20 svn_info $ROOT/XIOS 21 svn_info $ROOT/DYNAMICO 22 svn_info $ROOT 23 } 2 24 3 25 function all_results() … … 5 27 cd $ROOT/RUNS 6 28 for TEST in * ; do 7 NAME=$( echo $TEST | tr _ /)29 NAME=$(to_latex $TEST) 8 30 echo "\subsection{$NAME}" 9 for GRAPH in $ TEST/*.png; do31 for GRAPH in $(ls $TEST/*.png) ; do 10 32 cat <<EOF 11 33 \begin{figure} 12 34 \centering{} 13 35 \includegraphics[scale=0.5]{$ROOT/RUNS/$GRAPH} 36 \caption{$NAME} 14 37 \end{figure} 15 38 EOF 16 39 done 40 echo '\newpage{}' 17 41 done 18 42 # cd $ROOT/tmp … … 23 47 cd $ROOT/RUNS 24 48 for TEST in * ; do 25 NAME=$( echo $TEST | tr _ /)49 NAME=$(to_latex $TEST) 26 50 cat <<EOF 27 51 \subsection{$NAME} … … 49 73 50 74 cat <<EOF >report.tex 51 \documentclass[ a4paper,english]{article}75 \documentclass[10pt,a4paper,english]{article} 52 76 \usepackage{graphicx} 53 77 \usepackage{listings} … … 60 84 breaklinks=false,pdfborder={0 0 1},backref=false,colorlinks=true] 61 85 {hyperref} 86 \usepackage{geometry} 87 \geometry{verbose,tmargin=2cm,bmargin=2cm,lmargin=2cm,rmargin=2cm} 62 88 63 89 \begin{document} 64 90 65 91 \title{DYNAMICO correctness report ($arch)} 92 \date{} 66 93 \author{Thomas Dubos} 67 94 \maketitle 95 96 \begin{abstract} 97 $(abstract) 98 \end{abstract} 99 68 100 \tableofcontents{} 69 101 \section{Results} 70 102 $(all_results) 103 104 \twocolumn 105 71 106 \section{Parameters} 72 107 $(all_params) … … 74 109 EOF 75 110 76 pdflatex report.tex >/dev/null77 pdflatex report.tex >/dev/null111 pdflatex -interaction=batchmode report.tex 112 pdflatex -interaction=batchmode report.tex 78 113 mailx -s "DYNAMICO correctness report " -a report.pdf dubos@lmd.polytechnique.fr </dev/null
Note: See TracChangeset
for help on using the changeset viewer.