Changeset 5331 for BOL


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

Add strataer option to install_lmdz.sh
Improve test_convergence.sh

Location:
BOL/script_install_amaury
Files:
2 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
  • BOL/script_install_amaury/test_convergence.sh

    r5180 r5331  
    11#!/bin/bash
     2
     3# Quick tool to check convergence for a number of flags between two revs
    24
    35set -eu
     
    5557
    5658  # Check some additional params on sparse configs
    57 #  comp_bench "$rev1" "$rev2" "-xios -rad oldrad -parallel $para -veget none -compilephysiq lmd"  # xios broken for 5017
     59  comp_bench "$rev1" "$rev2" "-xios -rad oldrad -parallel mpi_omp -veget none -compilephysiq lmd"
    5860  for para in "none" "mpi_omp"; do
    59     comp_bench "$rev1" "$rev2" "-cosp v1 -rad oldrad -parallel $para -veget none -compilephysiq lmd"  # cosp v1 (no v2 because broken atm)
     61    comp_bench "$rev1" "$rev2" "-cosp v1 -rad oldrad -parallel $para -veget none -compilephysiq lmd"  # cosp v1 (no 2 because broken atm)
    6062    comp_bench "$rev1" "$rev2" "-debug -rad oldrad -parallel $para -veget none -compilephysiq lmd"  # debug
    6163  done
     64  comp_bench "$rev1" "$rev2" "-cosp v2 -xios -rad oldrad -parallel mpi_omp -veget none -compilephysiq lmd"  # cosp v1 (no 2 because broken atm)
    6265
    6366  local origdim="$dim"
     
    7679}
    7780
    78 comp_full 5159 5017
    79 comp_bench 5159 5150 "-xios -rad oldrad -parallel mpi_omp -veget none -compilephysiq lmd"  # xios broken for 5017
     81comp_full 5316 5217
     82#comp_bench 5205 5205 "-rad oldrad -parallel none -veget CMIP6 -compilephysiq lmd -debug"
    8083
    8184
Note: See TracChangeset for help on using the changeset viewer.