Changeset 2666 for trunk/LMDZ.COMMON/ioipsl
- Timestamp:
- Apr 21, 2022, 5:34:48 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.COMMON/ioipsl/install_ioipsl_MesoPSL.bash
r2657 r2666 23 23 fi 24 24 fi 25 25 source ../../ARCH/arch-MesoPSL.env 26 26 # Where is the NetCDF library root located? Hopefully nf-config can tell us 27 27 # but you might need an appropriate "module load netcdf***" beforehand … … 40 40 # arch.env file (add any suitable module load here) 41 41 cd IOIPSL/arch 42 echo "" > arch-ifort.env43 echo "export NETCDF_HOME=$NETCDF_HOME" >> arch-ifort.env44 # arch.fcm file45 echo '%COMPILER ifort' > arch-ifort.fcm46 echo '%LINK ifort' >> arch-ifort.fcm47 echo '%AR ar' >> arch-ifort.fcm48 echo '%MAKE make' >> arch-ifort.fcm49 echo '%FPP_FLAGS -P -traditional' >> arch-ifort.fcm50 echo '%BASE_FFLAGS -real-size 64 -ip -mkl=parallel -fp-model precise -align common' >> arch-ifort.fcm51 echo '%PROD_FFLAGS -O3' >> arch-ifort.fcm52 echo '%DEV_FFLAGS -O2' >> arch-ifort.fcm53 echo '%DEBUG_FFLAGS -fpe0 -g -no-ftz -check -traceback -ftrapuv -fp-stack-check -O0' >> arch-ifort.fcm54 echo '%MPI_FFLAGS ' >> arch-ifort.fcm55 echo '%OMP_FFLAGS ' >> arch-ifort.fcm56 echo '%BASE_LD ' >> arch-ifort.fcm57 echo '%MPI_LD ' >> arch-ifort.fcm58 echo '%OMP_LD ' >> arch-ifort.fcm59 # arch.path file60 # echo "NETCDF_INCDIR=\"-I$NETCDF_HOME/include\"" > arch-ifort.path61 # echo "NETCDF_LIBDIR=\"-L$NETCDF_HOME/lib\"" >> arch-ifort.path62 # echo 'NETCDF_LIB="-lnetcdff"' >> arch-ifort.path63 echo "NETCDF_LIBDIR=\"-L/obs/bcharnay/NETCDF_ifort/lib\"" > arch-ifort.path64 echo "NETCDF_INCDIR=\"-I/obs/bcharnay/NETCDF_ifort/include\"" >> arch-ifort.path65 echo 'NETCDF_LIB="-lnetcdf -lnetcdff"' >> arch-ifort.path42 # echo "" > arch-ifort.env 43 # echo "export NETCDF_HOME=$NETCDF_HOME" >> arch-ifort.env 44 # # arch.fcm file 45 # echo '%COMPILER ifort' > arch-ifort.fcm 46 # echo '%LINK ifort' >> arch-ifort.fcm 47 # echo '%AR ar' >> arch-ifort.fcm 48 # echo '%MAKE make' >> arch-ifort.fcm 49 # echo '%FPP_FLAGS -P -traditional' >> arch-ifort.fcm 50 # echo '%BASE_FFLAGS -real-size 64 -ip -mkl=parallel -fp-model precise -align common' >> arch-ifort.fcm 51 # echo '%PROD_FFLAGS -O3' >> arch-ifort.fcm 52 # echo '%DEV_FFLAGS -O2' >> arch-ifort.fcm 53 # echo '%DEBUG_FFLAGS -fpe0 -g -no-ftz -check -traceback -ftrapuv -fp-stack-check -O0' >> arch-ifort.fcm 54 # echo '%MPI_FFLAGS ' >> arch-ifort.fcm 55 # echo '%OMP_FFLAGS ' >> arch-ifort.fcm 56 # echo '%BASE_LD ' >> arch-ifort.fcm 57 # echo '%MPI_LD ' >> arch-ifort.fcm 58 # echo '%OMP_LD ' >> arch-ifort.fcm 59 # # arch.path file 60 # #echo "NETCDF_INCDIR=\"-I$NETCDF_HOME/include\"" > arch-ifort.path 61 # #echo "NETCDF_LIBDIR=\"-L$NETCDF_HOME/lib\"" >> arch-ifort.path 62 # #echo 'NETCDF_LIB="-lnetcdff"' >> arch-ifort.path 63 # echo "NETCDF_LIBDIR=\"-L/obs/bcharnay/NETCDF_ifort/lib\"" > arch-ifort.path 64 # echo "NETCDF_INCDIR=\"-I/obs/bcharnay/NETCDF_ifort/include\"" >> arch-ifort.path 65 # echo 'NETCDF_LIB="-lnetcdf -lnetcdff"' >> arch-ifort.path 66 66 67 echo '' >> arch-ifort.path 68 echo 'HDF5_INCDIR=""' >> arch-ifort.path 69 echo 'HDF5_LIBDIR=""' >> arch-ifort.path 70 echo 'HDF5_LIB=""' >> arch-ifort.path 71 echo '' >> arch-ifort.path 72 echo 'MPI_INCDIR=""' >> arch-ifort.path 73 echo 'MPI_LIBDIR=""' >> arch-ifort.path 74 echo 'MPI_LIB=""' >> arch-ifort.path 67 # echo '' >> arch-ifort.path 68 # echo 'HDF5_INCDIR=""' >> arch-ifort.path 69 # echo 'HDF5_LIBDIR=""' >> arch-ifort.path 70 # echo 'HDF5_LIB=""' >> arch-ifort.path 71 # echo '' >> arch-ifort.path 72 # echo 'MPI_INCDIR=""' >> arch-ifort.path 73 # echo 'MPI_LIBDIR=""' >> arch-ifort.path 74 # echo 'MPI_LIB=""' >> arch-ifort.path 75 cp ../../ARCH/arch-MesoPSL.env . 76 cp ../../ARCH/arch-MesoPSL.path . 77 cp ../../LMDZ.COMMON/arch/arch-MesoPSL.fcm . 75 78 76 79 ## 3. build ioipsl: 77 80 cd .. 78 ./makeioipsl_fcm -arch ifort-job 8 > makeioipsl.out 2>&181 ./makeioipsl_fcm -arch MesoPSL -job 8 > makeioipsl.out 2>&1 79 82 80 83 ## 4. Check if the library was indeed built:
Note: See TracChangeset
for help on using the changeset viewer.