Changeset 5762
- Timestamp:
- Jul 7, 2025, 4:33:36 PM (8 hours ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
BOL/script_install/install_lmdz.sh
r5567 r5762 33 33 # but with -r4 for netcdf. Variable real must be set to 34 34 # r4 or r8 at the beginning of the script below. 35 # 35 # Modif 04/03/2025, AI 36 # correction in XIOS 36 37 # Modif 04/03/2025, AI 37 38 # correction in XIOS … … 163 164 save_pub=0 164 165 save_pub_dir=$HOME/LMDZ/pub 166 config_name=Bench 167 165 168 } 166 169 … … 211 214 "-save_pub") save_pub=1 ; shift ;; 212 215 "-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 214 219 $0 [ -v version ] [ -r svn_release ] 215 220 [ -parallel PARA ] [ -d GRID_RESOLUTION ] [ -bench 0/1 ] … … 271 276 272 277 -verbose to print every executed command 278 279 -config config name 280 281 -build_dir directory in which your build is to be done 273 282 274 283 ........fin … … 845 854 846 855 # 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" 848 858 local para_compile_opt="-mem -parallel $parallel"; if [[ $parallel = "none" ]]; then para_compile_opt=""; fi 849 859 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" … … 852 862 # Check executable 853 863 # 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 854 869 if [ $bench = 1 -o $bench = compile_only ] ; then 855 870 if [[ ! -f $exe_name ]]; then
Note: See TracChangeset
for help on using the changeset viewer.