Recommendations about compilation (V8)

  • Before any run of SURFEX, you should set

export OMP_NUM_THREADS=1

preferentially in the file $HOME/.bash_profile (not to have to do it each time you open a new terminal)

  • At installation, before to do ./configure:
    • verify ARCH, VER_MPI, VER_OMP, OPTLEVEL, VER_CDF, VER_DRHOOK, VER_GRIBAPI, VER_OASIS, NEED_NCARGS, NEED_TOOLS are empty (echo $ARCH, echo $VER_MPI, etc)
  • Options for VER_MPI:
    • NOMPI (no MPI), MPIAUTO (default MPI library on the PC), specific libraries to be defined
  • Options for VER_OMP:
    • NOOMP (no Open-mp), OMP (Open-mp)
  • Options for OPTLEVEL ( optimization level ) :
    • DEBUG, O2
  • Options for VER_CDF ( Netcdf library):
    • CDFAUTO (included in SURFEX), CDFCTI (installed by CTI), other pre-installed libraries on computers.
  • Options for VER_DRHOOK ( DR_HOOK library):
    • BYPASS (dummies), MINI (minimal HOOK, no parallelization), SIMPLE (simplified DRHOOK)
  • Options for VER_GRIBAPI (GRIBAPI library):
    • GRIBAPI_AUTO (included in SURFEX), SOPRANO, pre-installed to define
  • Options for VER_OASIS (OASIS library):
    • NOmct (no OASIS), mct (OASIS)
  • Options for NEED_NCARG, NEED_TOOLS (for Mesonh):
    • NO