Changeset 5762


Ignore:
Timestamp:
Jul 7, 2025, 4:33:36 PM (8 hours ago)
Author:
Laurent Fairhead
Message:

Modifications brought about by new options in makelmdz_fcm
LF

File:
1 edited

Legend:

Unmodified
Added
Removed
  • BOL/script_install/install_lmdz.sh

    r5567 r5762  
    3333#      but with -r4 for netcdf. Variable real must be set to
    3434#      r4 or r8 at the beginning of the script below.
    35 #
     35# Modif 04/03/2025, AI
     36#     correction in XIOS
    3637# Modif 04/03/2025, AI
    3738#     correction in XIOS
     
    163164    save_pub=0
    164165    save_pub_dir=$HOME/LMDZ/pub
     166    config_name=Bench
     167
    165168}
    166169
     
    211214            "-save_pub") save_pub=1 ; shift ;;
    212215            "-save_pub_dir") save_pub_dir=$2 ; shift 2 ;;
    213             "-h" | *) cat <<........fin
     216            "-config") config_name=$2 ; shift 2 ;;
     217            "-build_dir") build_dir=$2 ; shift 2 ;;
     218            "-h" | *) cat <<........fin
    214219        $0 [ -v version ] [ -r svn_release ]
    215220               [ -parallel PARA ] [ -d GRID_RESOLUTION ] [ -bench 0/1 ]
     
    271276
    272277        -verbose    to print every executed command
     278
     279        -config     config name
     280
     281        -build_dir  directory in which your build is to be done
    273282
    274283........fin
     
    845854
    846855    # Compile
    847     local makelmdz="makelmdz_fcm $optim_flag -arch $arch -j $make_j"
     856    local build_opt="-config $config_name"; if [[ ! -z ${build_dir+x} ]]; then build_opt="$build_opt -build_dir $build_dir"; fi
     857    local makelmdz="makelmdz_fcm $optim_flag $build_opt -arch $arch -j $make_j"
    848858    local para_compile_opt="-mem -parallel $parallel"; if [[ $parallel = "none" ]]; then para_compile_opt=""; fi
    849859    do_compile_sh "LMDZ" "$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"
     
    852862    # Check executable
    853863    # FHTBD : Nettoyer tout ça en douceur mais sans trainer
     864    # name of executable changed with new makelmdz_fcm (revision 5743)
     865    if [[ -z ${build_dir+x} ]]; then build_dir=libo; fi
     866    if [[ -x $build_dir/$config_name/gcm ]]; then
     867        exe_name=$build_dir/$config_name/gcm
     868    fi
    854869    if [ $bench = 1 -o $bench = compile_only ] ; then
    855870        if [[ ! -f $exe_name ]]; then
Note: See TracChangeset for help on using the changeset viewer.