Ignore:
Timestamp:
Nov 15, 2024, 5:34:32 PM (5 weeks ago)
Author:
abarral
Message:

Add strataer option to install_lmdz.sh
Improve test_convergence.sh

File:
1 edited

Legend:

Unmodified
Added
Removed
  • BOL/script_install_amaury/install_lmdz.sh

    r5247 r5331  
    9696    cosp="none"
    9797    aerosols=0
     98    strataer=0
    9899    inlandsis=0
    99100
     
    207208            "-veget") veget=$2; shift; shift;;
    208209            "-spla") aerosols=1; shift;;
     210            "-strataer") strataer=1; shift;;
    209211            "-inlandsis") inlandsis=1; shift;;
    210212            "-make_j") make_j=$2; shift; shift;;
     
    246248    else
    247249      opt_aer=""; suff_aer=""
     250    fi
     251
     252    if [[ $strataer = 1 ]]; then
     253      opt_strataer="-strataer true"
     254    else
     255      opt_strataer=""
    248256    fi
    249257
     
    415423    cp -f "$default_env_path" "$MODEL/modipsl/modeles/$component/arch" &> /dev/null || true  # allow failure if we're copying the file to itself
    416424
    417     # Use local .path and .fcm is available, otherwise default
     425    # Use local .path and .fcm if available, otherwise default
    418426    if [[ ! -f "$MODEL/modipsl/modeles/$component/arch/arch-$arch.path" ]]; then
    419427        cp -f "$default_path_path" "$MODEL/modipsl/modeles/$component/arch"
     
    703711    makelmdz="makelmdz_fcm $optim_flag -arch $arch -j $make_j"
    704712    local para_compile_opt="-mem -parallel $parallel"; if [[ $parallel = "none" ]]; then para_compile_opt=""; fi
    705     echo "$jobcmd ./$makelmdz $opt_rad $opt_cosp $opt_makelmdz_xios $opt_aer $opt_inlandsis $opt_isotopes -p $compphysiq -d ${grid_resolution} -v $fcm_veget_version $para_compile_opt $fortran_file" > compile.sh
     713    echo "$jobcmd ./$makelmdz $opt_rad $opt_cosp $opt_makelmdz_xios $opt_aer $opt_inlandsis $opt_strataer $opt_isotopes -p $compphysiq -d ${grid_resolution} -v $fcm_veget_version $para_compile_opt $fortran_file" > compile.sh
    706714    echo "Compiling lmdz using $(\cat compile.sh) (log: $lmdzlog) $(date)"
    707715    chmod +x ./compile.sh
Note: See TracChangeset for help on using the changeset viewer.