Changeset 4896 for BOL/script_install_amaury/install_lmdz.sh
- Timestamp:
- Apr 11, 2024, 11:08:29 AM (5 weeks ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
BOL/script_install_amaury/install_lmdz.sh
r4893 r4896 326 326 327 327 # Adapt for XIOS, which uses different naming conventions 328 # TODO >:c ugly fdefault-real-8 fix329 328 sed -i'' -e "s/%COMPILER/%FCOMPILER/" -e "s/%LINK/%LINKER/" -e "s/-fdefault-real-8//" "$MODEL/modipsl/modeles/XIOS/arch/arch-$arch.fcm" 330 329 } … … 338 337 cd "$MODEL" 339 338 340 case $compiler in 341 gfortran) opt1="-compiler gnu"; opt2="-CC gcc -FC gfortran -CXX g++";; 342 ifort) opt1="-compiler intel"; opt2="-CC icc -FC ifort -CXX icpc";; 343 pgf90) opt1="-compiler pgf90"; opt2="-CC pgcc -FC pgf90 -CXX pgCC";; 344 *) echo "unexpected compiler $compiler for netcdf"; exit 1 339 # Convert non-basic compiler 340 local ncdf_compiler="$compiler" 341 case $compiler in # TODO check if it works with other base compilers 342 mpif90) ncdf_compiler=$($compiler --help | head -n 1 | cut -f 2 -d " ") 343 esac 344 345 case $ncdf_compiler in 346 gfortran) opt1="-compiler gnu"; opt2="-CC gcc -FC gfortran -CXX g++";; 347 ifort) opt1="-compiler intel"; opt2="-CC icc -FC ifort -CXX icpc";; 348 pgf90) opt1="-compiler pgf90"; opt2="-CC pgcc -FC pgf90 -CXX pgCC";; 349 *) echo "unexpected compiler $ncdf_compiler for netcdf"; exit 1 345 350 esac 346 351 … … 360 365 fi 361 366 367 362 368 echo "Repertoire netcdf $ncdfdir" 363 369 if [[ ! -d $ncdfdir ]]; then … … 373 379 fi 374 380 381 # Add to path 382 export PATH="$ncdfdir/bin:$PATH" 383 375 384 #---------------------------------------------------------------------------- 376 385 # LF rajout d'une verrue, pour une raison non encore expliquee, … … 389 398 EOF 390 399 391 if $ compiler -I"$ncdfdir"/include test_netcdf90.f90 -L"$ncdfdir"/lib -lnetcdff \400 if $ncdf_compiler -I"$ncdfdir"/include test_netcdf90.f90 -L"$ncdfdir"/lib -lnetcdff \ 392 401 -lnetcdf -Wl,-rpath="$ncdfdir"/lib && ./a.out 393 402 then … … 416 425 } 417 426 418 function install_IOIPSL { # via fcm427 function install_IOIPSL { 419 428 cd "$MODEL/modipsl/modeles/IOIPSL" 420 429 ioipsllog="$(pwd)/ioipsl.log" … … 424 433 echo "IOIPSL compile failed, exiting"; exit 1 425 434 fi 426 cp lib/* ../../lib 435 436 # Link to modipsl/bin 437 cp -f bin/* ../../bin 438 427 439 echo "IOIPSL compiled $(date)" 428 440
Note: See TracChangeset
for help on using the changeset viewer.