Ignore:
Timestamp:
Apr 21, 2022, 5:34:48 PM (3 years ago)
Author:
aslmd
Message:

modified the install_ioipsl script for MesoPSL with new arch

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.COMMON/ioipsl/install_ioipsl_MesoPSL.bash

    r2657 r2666  
    2323  fi
    2424fi
    25 
     25source ../../ARCH/arch-MesoPSL.env
    2626# Where is the NetCDF library root located? Hopefully nf-config can tell us
    2727# but you might need an appropriate "module load netcdf***" beforehand
     
    4040# arch.env file (add any suitable module load here)
    4141cd IOIPSL/arch
    42 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
     42# 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
    6666
    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
     75cp ../../ARCH/arch-MesoPSL.env .
     76cp ../../ARCH/arch-MesoPSL.path .
     77cp ../../LMDZ.COMMON/arch/arch-MesoPSL.fcm .
    7578
    7679## 3. build ioipsl:
    7780cd ..
    78 ./makeioipsl_fcm -arch ifort -job 8 > makeioipsl.out 2>&1
     81./makeioipsl_fcm -arch MesoPSL -job 8 > makeioipsl.out 2>&1
    7982
    8083## 4. Check if the library was indeed built:
Note: See TracChangeset for help on using the changeset viewer.