Changeset 5083 for BOL


Ignore:
Timestamp:
Jul 19, 2024, 5:45:16 PM (7 weeks ago)
Author:
abarral
Message:

Ensure prod is default flag everywhere

File:
1 edited

Legend:

Unmodified
Added
Removed
  • BOL/script_install_amaury/install_lmdz.sh

    r5064 r5083  
    8585    fi
    8686
    87     optim_debug=""
     87    optim_flag="-prod"
    8888    arch="local"
    8989
     
    174174                         esac;;
    175175            "-bench") bench=$2; shift; shift;;
    176             "-debug") optim_debug=-debug; shift;;
     176            "-debug") optim_flag="-debug"; shift;;
    177177            "-name") MODEL=$2; shift; shift;;
    178178            "-netcdf") netcdf=$2; shift; shift;;
     
    496496    echo "Compiling IOIPSL, the interface library with Netcdf $(date) (log: $ioipsllog)"
    497497
    498     echo "$jobcmd ./makeioipsl_fcm -j $make_j -arch $arch" > compile.sh
     498    echo "$jobcmd ./makeioipsl_fcm -j $make_j -arch $arch $optim_flag" > compile.sh
    499499    chmod +x compile.sh
    500500    echo "Compiling IOIPSL using $(\cat compile.sh)"
     
    584584        echo "Compiling ORCHIDEE, the continental surface model (log $orchideelog) $(date)"
    585585
    586         local xios_orchid opt_orc
     586        local xios_orchid
    587587        if [[ $with_xios = 1 ]]; then
    588588            xios_orchid="-xios";
     
    590590            xios_orchid="-noxios"
    591591        fi
    592         if [[ $optim_debug = "-debug" ]]; then
    593             opt_orc="-debug";
    594         else
    595             opt_orc="-prod"
    596         fi
    597592
    598593        if [[ $parallel != "none" && ! -d src_parallel ]]; then
    599594           echo "STOP: Orchidee version too old for parallel support"; exit 1
    600595        fi
    601         echo "$jobcmd ./makeorchidee_fcm -j $make_j $xios_orchid $opt_orc -parallel $parallel -arch $arch" > compile.sh
     596        echo "$jobcmd ./makeorchidee_fcm -j $make_j $xios_orchid $optim_flag -parallel $parallel -arch $arch" > compile.sh
    602597        chmod +x compile.sh
    603598        echo "Compiling ORCHIDEE using $(\cat compile.sh)"
     
    663658
    664659    # Compile
    665     makelmdz="makelmdz_fcm $optim_debug -arch $arch -j $make_j"
     660    makelmdz="makelmdz_fcm $optim_flag -arch $arch -j $make_j"
    666661    local para_compile_opt="-mem -parallel $parallel"; if [[ $parallel = "none" ]]; then para_compile_opt=""; fi
    667662    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 gcm" > compile.sh
     
    677672        echo "STOP: Compilation failed, can't find the executable"; exit 1
    678673    else
    679         echo "Compilation successfull, the executable is $exe_name $(date)"
     674        echo "Compilation successful, the executable is $exe_name $(date)"
    680675    fi
    681676}
Note: See TracChangeset for help on using the changeset viewer.