Changeset 510 for configs


Ignore:
Timestamp:
12/12/16 13:41:51 (7 years ago)
Author:
dubos
Message:

updates to testing

Location:
configs/testing/bash
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • configs/testing/bash/X64_CURIE.sh

    r502 r510  
    6868cd \${BRIDGE_MSUB_PWD}  
    6969 
    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) 
    8071 
    8172rm -rf gcm.log logs *.nc netcdf 
     
    122113cd \${BRIDGE_MSUB_PWD}/.. 
    123114 
    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) 
    134116module load python 
    135117 
  • configs/testing/bash/create_runs.sh

    r506 r510  
    8181} 
    8282 
    83 #------------------------------------- DCMIP3.1 ---------------------------------- 
     83#------------------------------------- DCMIP 2012 --------------------------------- 
    8484 
    8585function rundef_DCMIP(){ 
     
    8888    setvar radius 6.37122e6 g 9.80616 kappa 0.2857143 cpp 1004.5 preff 1e5 
    8989    setvar nitergdiv 2 nitergrot 2 niterdivgrad 2 tau_graddiv 
     90} 
     91 
     92function 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 
    9099} 
    91100 
     
    98107    setvar scale_factor 125 write_period 7500 run_length 4.5e5 etat0 dcmip3 
    99108} 
     109 
    100110function rundef_DCMIP41() { # NBP TAU 
    101111    NBP=$1 ; TAU=$2 
     
    107117} 
    108118 
     119function 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 
     128function job_DCMIP21() { # EXEC NBP 
     129    job_$1_$2 DCMIP21_$1 # e.g. job_mpi_80 DCMIP31_mpi 
     130} 
    109131function job_DCMIP31() { # EXEC NBP 
    110132    job_$1_$2 DCMIP31_$1 # e.g. job_mpi_80 DCMIP31_mpi 
     
    113135    job_$1_$2 DCMIP41_$1 
    114136} 
     137function job_DCMIP51() { # EXEC NBP 
     138    job_$1_$2 DCMIP51_$1 
     139} 
    115140 
    116141#----------------------------- END ---------------------------- 
    117142 
    118 function main() 
     143function basic() 
    119144{ 
    120145    rm -rf RUNS 
    121146    mkdir RUNS 
    122147    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 
     158function main() 
     159{ 
    123160# the number associated to each run.def parameter is used to sort the lines and order them in a logical way 
    124161    declare -A idx 
     
    127164    order 300 nbp optim_it nsplit_i nsplit_j llm disvert ncar_disvert_c ncar_dz ncar_T0 ncar_p0 
    128165    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  
    130168    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 
    137171} 
    138172 
  • configs/testing/bash/post.sh

    r502 r510  
    1 #!/bin/bash 
     1B1;2c#!/bin/bash 
     2 
     3function to_latex() { 
     4echo $1 | sed 's/_/\\_/g' 
     5} 
     6 
     7function svn_info() { 
     8    cd $1 
     9    svn info | grep URL 
     10    echo '\\' 
     11    svn info | grep Revision 
     12    echo '\\' 
     13} 
     14 
     15function 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} 
    224 
    325function all_results() 
     
    527    cd $ROOT/RUNS 
    628    for TEST in * ; do 
    7         NAME=$(echo $TEST | tr _ /) 
     29        NAME=$(to_latex $TEST) 
    830        echo "\subsection{$NAME}" 
    9         for GRAPH in $TEST/*.png ; do 
     31        for GRAPH in $(ls $TEST/*.png) ; do 
    1032            cat <<EOF 
    1133\begin{figure} 
    1234\centering{} 
    1335\includegraphics[scale=0.5]{$ROOT/RUNS/$GRAPH} 
     36\caption{$NAME} 
    1437\end{figure} 
    1538EOF 
    1639        done 
     40        echo '\newpage{}' 
    1741    done 
    1842#    cd $ROOT/tmp 
     
    2347    cd $ROOT/RUNS 
    2448    for TEST in * ; do 
    25         NAME=$(echo $TEST | tr _ /) 
     49        NAME=$(to_latex $TEST) 
    2650        cat <<EOF 
    2751\subsection{$NAME} 
     
    4973 
    5074cat <<EOF >report.tex 
    51 \documentclass[a4paper,english]{article} 
     75\documentclass[10pt,a4paper,english]{article} 
    5276\usepackage{graphicx} 
    5377\usepackage{listings} 
     
    6084 breaklinks=false,pdfborder={0 0 1},backref=false,colorlinks=true] 
    6185 {hyperref} 
     86\usepackage{geometry} 
     87\geometry{verbose,tmargin=2cm,bmargin=2cm,lmargin=2cm,rmargin=2cm} 
    6288 
    6389\begin{document} 
    6490 
    6591\title{DYNAMICO correctness report ($arch)} 
     92\date{} 
    6693\author{Thomas Dubos} 
    6794\maketitle 
     95 
     96\begin{abstract} 
     97$(abstract) 
     98\end{abstract} 
     99 
    68100\tableofcontents{} 
    69101\section{Results} 
    70102$(all_results) 
     103 
     104\twocolumn 
     105 
    71106\section{Parameters} 
    72107$(all_params) 
     
    74109EOF 
    75110 
    76 pdflatex report.tex >/dev/null 
    77 pdflatex report.tex >/dev/null 
     111pdflatex -interaction=batchmode report.tex 
     112pdflatex -interaction=batchmode report.tex 
    78113mailx -s "DYNAMICO correctness report " -a report.pdf dubos@lmd.polytechnique.fr </dev/null 
Note: See TracChangeset for help on using the changeset viewer.