Changeset 4197


Ignore:
Timestamp:
Jul 8, 2022, 6:21:28 PM (2 years ago)
Author:
Laurent Fairhead
Message:

Resolving issue when using oldrad with the default bench suite

Location:
BOL/script_install
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • BOL/script_install/check_version.sh

    r4108 r4197  
    2323
    2424install=1
     25rad=rrtm
    2526check_1D=1
    2627check_SP=1
     
    5960options:
    6061  -c compiler : sets the compiler to use
    61   -j 0/1 : just check results, do not overwrite anything 0/1
     62  -justcheck  : just check results, do not overwrite anything
    6263  -r svn : revision
    6364  -latest latest : latest is the date of the last version tested
     
    6768
    6869      "-c") compilo="$2" ; shift ; shift ;;
    69       "-j") justcheck="$2" ; shift ; shift ;;
     70      "-justcheck") justcheck=1 ; shift ;;
    7071      "-r") rel_svn="$2" ; shift ; shift ;;
    7172      "-latest") version_ref="$2" ; shift ; shift ;;
     
    285286      cd BENCHiso48x36x39
    286287      ./compile.sh
    287       exec=../bin/gcm_48x36x39_phylmdiso_seq_iso_isoverif.e
     288      exec=../bin/gcm_48x36x39_phylmdiso_${rad}_seq_iso_isoverif.e
    288289      if [ -f $exec ] ; then
    289290             $exec > listing 2>&1
     
    414415   ssh lmdz@django "mail -s 'Nouvelle version pour install_lmdz.sh' $mail_address < "$local_d"/tmp.message"
    415416fi
     417
     418#
     419# clean up of /tmp/lmdz if everything went smoothly
     420#
     421grep -q 'OK     OK      OK2     OK' tmp.resu
     422RET=$?
     423if [ ${RET} -eq 0 ] ; then
     424  echo "Quality control checks out for version $version"
     425  echo "We cleanup /tmp/lmdz/LMDZ$version"
     426  echo "\rm -rf /tmp/lmdz/LMDZ$version"
     427  \rm -rf /tmp/lmdz/LMDZ$version
     428fi
     429
  • BOL/script_install/creation_modipsl.sh

    r4101 r4197  
    11#!/bin/bash
    22
    3 set -vx
     3#set -vx
    44
    55#####################################################################
     
    186186   cat tmp.resu >> LISMOI.$branche
    187187   \cp -f LISMOI.trunk ../pub/src/Readme
     188###
     189### clean up of /tmp/lmdz if everything went smoothly
     190###
     191##  grep -q 'OK OK      OK2     OK' tmp.resu
     192##  RET=$?
     193##  if [ ${RET} -eq 0 ] ; then
     194##    echo "Quality control checks out for version $version"
     195##    echo "We could cleanup /tmp/lmdz/LMDZ$version"
     196##    echo "\rm -rf /tmp/lmdz/LMDZ$version"
     197##  fi
    188198fi
  • BOL/script_install/install_lmdz.sh

    r4196 r4197  
    5353    \cp -f -p ~/LMDZ/pub/$1 .
    5454  else
    55     wget --no-check-certificate -nv http://www.lmd.jussieu.fr/~lmdz/pub/$1
     55    wget --no-check-certificate -nv http://lmdz.lmd.jussieu.fr/pub/$1
    5656    save_pub_locally=0
    5757    if [ $save_pub_locally = 1 ] ; then # saving wget files on ~/LMDZ/pub
     
    935935# Option de compilation du rayonnement : depend de $mysvn ><= r4185
    936936opt_rad=""
     937
    937938case $rad in
    938    rrtm) if [ $mysvn -le 4185 ] ; then opt_rad="-rrtm true" ; else opt_rad="-rad rrtm" ; fi ;;
    939    ecrad) opt_rad="-rad ecrad" ;;
     939    oldrad) iflag_rrtm=0 ; NSW=2 ; opt_rad="" ;;
     940    rrtm)   iflag_rrtm=1 ; NSW=6 ; if [ $mysvn -le 4185 ] ; then opt_rad="-rrtm true" ; else opt_rad="-rad rrtm" ; fi ;;
     941    ecrad)  iflag_rrtm=2 ; NSW=6 ; opt_rad="-rad ecrad" ;;
     942    *) echo Only oldrad rrtm ecrad for rad option ; exit
    940943esac
    941944
     
    11791182     cp  ../DefLists/namelist_ecrad .
    11801183     cp -r ../libf/phylmd/ecrad/data .
    1181    # Attention au cas ou ne 1
    1182      sed -e 's@iflag_rrtm=1@iflag_rrtm=2@' physiq.def > tmp
    1183       \mv -f tmp physiq.def
    11841184     cd ..
    11851185   fi
     1186
     1187   # Adjusting bench physiq.def to radiative code chosen
     1188   cd BENCH${grid_resolution}
     1189   sed -e 's/iflag_rrtm=.*.$/iflag_rrtm='$iflag_rrtm'/' -e 's/NSW=.*.$/NSW='$NSW'/' physiq.def > tmpdef
     1190   \mv tmpdef physiq.def
     1191   cd ..
    11861192   
    11871193   cp $gcm BENCH${grid_resolution}/gcm.e
Note: See TracChangeset for help on using the changeset viewer.