- Timestamp:
- Jun 3, 2024, 4:50:58 PM (6 months ago)
- Location:
- BOL/script_install_amaury
- Files:
-
- 1 added
- 2 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
BOL/script_install_amaury/arch_local/arch-local-gfortran.env
r4901 r4959 1 NETCDF_INCDIR="-I$(nf-config --includedir)" 2 # Ugly hack for orchidee <=2.0 3 NETCDF_LIBDIR="-L$(nf-config --flibs | sed -e "s/-L//")" 4 NETCDF95_INCDIR="-I$LMDGCM/../../include" 5 NETCDF95_LIBDIR="-L$LMDGCM/../../lib" 6 NETCDF95_LIB="-lnetcdf95" 7 8 # Exported 9 IOIPSL_INCDIR="-I$IOIPSL_INCDIR_ -I$IOIPSL_LIBDIR_" 10 IOIPSL_LIBDIR="-L$IOIPSL_INCDIR_ -L$IOIPSL_LIBDIR_" 11 IOIPSL_LIB="-lioipsl" 12 13 # Exported 14 XIOS_INCDIR="-I$XIOS_INCDIR_" 15 XIOS_LIBDIR="-L$XIOS_LIBDIR_" 16 XIOS_LIB="-lxios -lstdc++" 17 18 # Exported 19 ORCH_INCDIR="-I$ORCH_INCDIR_ -I$ORCH_LIBDIR_" 20 ORCH_LIBDIR="-L$ORCH_LIBDIR_ -L$ORCH_INCDIR_" 1 # empty -
BOL/script_install_amaury/arch_local/arch-local-gfortran.path
r4901 r4959 2 2 # Ugly hack for orchidee <=2.0 3 3 NETCDF_LIBDIR="-L$(nf-config --flibs | sed -e "s/-L//")" 4 NETCDF95_INCDIR="-I$ LMDGCM/../../include"5 NETCDF95_LIBDIR="-L$ LMDGCM/../../lib"4 NETCDF95_INCDIR="-I$(pwd)/../../include" 5 NETCDF95_LIBDIR="-L$(pwd)/../../lib" 6 6 NETCDF95_LIB="-lnetcdf95" 7 7 8 8 # Exported 9 IOIPSL_INCDIR="-I$ IOIPSL_INCDIR_ -I$IOIPSL_LIBDIR_"10 IOIPSL_LIBDIR="-L$ IOIPSL_INCDIR_ -L$IOIPSL_LIBDIR_"9 IOIPSL_INCDIR="-I$(pwd)/../IOIPSL/inc -I$(pwd)/../IOIPSL/lib" 10 IOIPSL_LIBDIR="-L$(pwd)/../IOIPSL/inc -L$(pwd)/../IOIPSL/lib" 11 11 IOIPSL_LIB="-lioipsl" 12 12 13 13 # Exported 14 XIOS_INCDIR="-I$ XIOS_INCDIR_"15 XIOS_LIBDIR="-L$ XIOS_LIBDIR_"14 XIOS_INCDIR="-I$(pwd)/../XIOS/inc" 15 XIOS_LIBDIR="-L$(pwd)/../XIOS/lib" 16 16 XIOS_LIB="-lxios -lstdc++" 17 17 18 18 # Exported 19 ORCH_INCDIR="-I$ ORCH_INCDIR_ -I$ORCH_LIBDIR_"20 ORCH_LIBDIR="-L$ ORCH_LIBDIR_ -L$ORCH_INCDIR_"19 ORCH_INCDIR="-I$(pwd)/../ORCHIDEE/inc -I$(pwd)/../ORCHIDEE/lib" 20 ORCH_LIBDIR="-L$(pwd)/../ORCHIDEE/inc -L$(pwd)/../ORCHIDEE/lib" -
BOL/script_install_amaury/install_lmdz.sh
r4957 r4959 386 386 387 387 if [[ ! -f "$MODEL/modipsl/modeles/$component/arch/arch-$arch.fcm" ]]; then 388 \cp -f "$arch_dir/arch-$arch.fcm" "$MODEL/modipsl/modeles/$component/arch" 389 \cp -f "$arch_dir/arch-$arch.path" "$MODEL/modipsl/modeles/$component/arch" 388 cp -f "$arch_dir/arch-$arch."{fcm,path,env} "$MODEL/modipsl/modeles/$component/arch" 390 389 391 390 if [[ $component = "XIOS" ]]; then … … 510 509 511 510 echo "IOIPSL compiled $(date)" 512 513 IOIPSL_LIBDIR_="$MODEL/modipsl/modeles/IOIPSL/lib"514 IOIPSL_INCDIR_="$MODEL/modipsl/modeles/IOIPSL/inc"515 511 } 516 512 … … 541 537 echo "Compiled XIOS $(date)" 542 538 fi 543 544 XIOS_LIBDIR_="$MODEL/modipsl/modeles/XIOS/lib"545 XIOS_INCDIR_="$MODEL/modipsl/modeles/XIOS/inc"546 539 } 547 540 … … 594 587 fi 595 588 596 local varenv="IOIPSL_LIBDIR_=$IOIPSL_LIBDIR_ IOIPSL_INCDIR_=$IOIPSL_INCDIR_ XIOS_INCDIR_=$XIOS_INCDIR_ XIOS_LIBDIR_=$XIOS_LIBDIR_"597 589 if [[ $parallel = "none" ]]; then 598 echo " $varenv./makeorchidee_fcm $xios_orchid $opt_orc -parallel none -arch $arch -j $make_j" > compile.sh590 echo "./makeorchidee_fcm $xios_orchid $opt_orc -parallel none -arch $arch -j $make_j" > compile.sh 599 591 else 600 592 if [[ ! -d src_parallel ]]; then … … 602 594 fi 603 595 { 604 echo " $varenv./makeorchidee_fcm -j $make_j $xios_orchid $opt_orc -parallel $parallel -arch $arch"596 echo "./makeorchidee_fcm -j $make_j $xios_orchid $opt_orc -parallel $parallel -arch $arch" 605 597 } > compile.sh 606 598 fi … … 612 604 echo "Compiled ORCHIDEE $(date)" 613 605 fi 614 615 ORCH_INCDIR_="$MODEL/modipsl/modeles/ORCHIDEE/inc"616 ORCH_LIBDIR_="$MODEL/modipsl/modeles/ORCHIDEE/lib"617 606 } 618 607 … … 666 655 667 656 # Compile 668 local varenv="IOIPSL_LIBDIR_=\"$IOIPSL_LIBDIR_\" IOIPSL_INCDIR_=\"$IOIPSL_INCDIR_\" ORCH_INCDIR_=\"$ORCH_INCDIR_\" ORCH_LIBDIR_=\"$ORCH_LIBDIR_\" XIOS_INCDIR_=\"$XIOS_INCDIR_\" XIOS_LIBDIR_=\"$XIOS_LIBDIR_\""669 657 makelmdz="makelmdz_fcm $optim_debug -arch $arch -j $make_j" 670 658 local para_compile_opt="-mem -parallel $parallel"; if [[ $parallel = "none" ]]; then para_compile_opt=""; fi 671 echo " $varenv./$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.sh659 echo "./$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 672 660 echo "Compiling lmdz using $(\cat compile.sh) (log: $lmdzlog) $(date)" 673 661 chmod +x ./compile.sh
Note: See TracChangeset
for help on using the changeset viewer.