Changeset 4957 for BOL/script_install_amaury
- Timestamp:
- Jun 3, 2024, 1:07:36 PM (7 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
BOL/script_install_amaury/install_lmdz.sh
r4941 r4957 264 264 265 265 # STOP if trying to use both ORCHIDEE and Isotopes : 266 if [[ $isotopes = 1 && $veget != " NONE" ]]; then266 if [[ $isotopes = 1 && $veget != "none" ]]; then 267 267 echo "STOP: You cannot run LMDZ with ORCHIDEE and ISOtopes at the same time"; exit 1 268 268 fi … … 279 279 fi 280 280 281 # (Temporary) Constraints for aerosols=spla :282 # --> resolution 128x88x79 and rad=rrtm283 if [[ $aerosols = 1 && $grid_resolution != "128x88x79" ]]; then284 echo 'For now, <aerosols=spla> requires <resol=128x88x79>, and uses the zoomed grid from gcm.def_zNAfrica_BiJe, for which forcing & initial files are available'285 echo "Right now resol=<$grid_resolution>"286 exit 1287 fi288 289 281 if [[ $aerosols = 1 && $rad != "rrtm" ]]; then 290 282 echo "STOP: For the time being, <aerosols=spla> requires <rad=rrtm>"; exit 1 291 283 fi 284 # TODO: vérifier quelles contraintes sont des contraintes lmdzsetup, et lesquelles sont des vraies contraintes 292 285 } 293 286 … … 491 484 echo "Installing NetCDF95" 492 485 cd "$MODEL" 493 myget src_archives/netcdf/NetCDF95-0.3.tar.gz 494 tar -xf NetCDF95-0.3.tar.gz 495 \rm NetCDF95-0.3.tar.gz 496 cd NetCDF95-0.3 497 mkdir -p build && cd build 498 netCDF_INCLUDE_DIR=$(nc-config --includedir) netCDF_LIBRARY=$(nc-config --libdir) cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH="$ncdfdir" -DCMAKE_INSTALL_PREFIX="$MODEL/modipsl" 499 make install 486 if [[ ! -d "NetCDF95-0.3" ]]; then 487 myget src_archives/netcdf/NetCDF95-0.3.tar.gz 488 tar -xf NetCDF95-0.3.tar.gz 489 \rm NetCDF95-0.3.tar.gz 490 cd NetCDF95-0.3 491 mkdir -p build && cd build 492 netCDF_INCLUDE_DIR=$(nc-config --includedir) netCDF_LIBRARY=$(nc-config --libdir) cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH="$ncdfdir" -DCMAKE_INSTALL_PREFIX="$MODEL/modipsl" 493 make install 494 fi 500 495 } 501 496
Note: See TracChangeset
for help on using the changeset viewer.