Changeset 5669


Ignore:
Timestamp:
2015-08-04T18:27:07+02:00 (5 years ago)
Author:
nicolasmartin
Message:

dev_r5092_CNRS_SETTE Corrections in trusting.sh to recompile NEMO from scratch & find all gz archives

Location:
branches/2015/dev_r5092_CNRS_SETTE/NEMOGCM/TRUST
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/2015/dev_r5092_CNRS_SETTE/NEMOGCM/TRUST/trusting.sh

    r5667 r5669  
    8585print_step "Compile ${REFE_CONF} configuration" 
    8686cd ${NEMO_CONF} 
    87 [[ -d ${TEST_CONF} && $DEBUG -eq 0 ]] && eval ./makenemo -n ${TEST_CONF} clean >               /dev/null 
    88 eval ./makenemo -n ${TEST_CONF} -r ${REFE_CONF} -m ${NEMO_HPCC} -j $NPROC      ${stderr_redir} /dev/null 
     87[[ -d ${TEST_CONF} && $DEBUG -eq 0 ]] && eval ./makenemo -n ${TEST_CONF} clean_config > /dev/null <<EOF 
     88y 
     89EOF 
     90eval ./makenemo -n ${TEST_CONF} -r ${REFE_CONF} -m ${NEMO_HPCC} -j $NPROC ${stderr_redir} /dev/null 
    8991[ ! -e ${TEST_CONF}/BLD/bin/nemo.exe ] && get_out 2 
    9092 
     
    9698get_inputs 
    9799(( $? != 0 )) && get_out 3 
    98 [ $( find . -name '*.gz' -print -quit ) ] && gunzip *.gz 
     100[ $( find . -name '*.gz' -print -quit ) ] && find . -name '*.gz' -exec gunzip {} \; 
    99101 
    100102## Check input files in all cases 
  • branches/2015/dev_r5092_CNRS_SETTE/NEMOGCM/TRUST/trusting_func.sh

    r5667 r5669  
    213213comments() { 
    214214    local state=$1 
     215    export TIME_STEP=0 
    215216 
    216217    if [ "$state" == 'E R R O R' ]; then 
    217    [ -e time.step ] && TIME_STEP=$( cat time.step | tr -d ' ' ) 
     218   [ -e time.step ] && export TIME_STEP=$( cat time.step | tr -d ' ' ) 
    218219   [ -e ocean.output ] && line=$( grep -m1 -A4 "$state"   ocean.output | tr -d '\n' ) 
    219220    else 
     
    226227 
    227228mesg_make() { 
    228     cat temp_${FILE_COMM} | tr -d '\n' | sed 's/<br>$//' >> ${FILE_COMM} ## Format comments for web 
     229    ## Format comments for web 
     230    [ -e temp_${FILE_COMM} ] && cat temp_${FILE_COMM} | tr -d '\n' | sed 's/<br>$//' >> ${FILE_COMM} 
     231 
    229232    paste -d ';' mesg_*.txt | tee ${FILE_TRUS} 
    230233} 
Note: See TracChangeset for help on using the changeset viewer.