TNO Intern

Commit 4b6d2499 authored by Arjo Segers's avatar Arjo Segers
Browse files

Support latest servers.

parent 7c80f1ab
Loading
Loading
Loading
Loading
+12 −14
Original line number Diff line number Diff line
@@ -20,7 +20,7 @@ exe='tutorial_oper_S5p.x'
case `hostname` in

  #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  # TNO / HPC3:
  # TNO / HPC4:
  app-hpc* )
  #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
@@ -64,20 +64,18 @@ case `hostname` in
    ;;

  #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  # MET Norway / Nebula:
  nebula.* )
  # MET Norway / Fahrenheit:
  fahrenheit* )
  #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    # module commands:
    module --force purge
    module load "mpprun/4.0"
    module load "nsc/.1.0"
    module load "buildenv-intel/2018a-eb"
    module load "netCDF/4.4.1.1-HDF5-1.8.19-nsc1-intel-2018a-eb"
    #module load "Python/3.7.0-anaconda-5.3.0-extras-nsc1"
    module purge
    module load "buildenv-intel/2023.1.0-hpc1"
    module load "netCDF-HDF5/4.9.2-1.12.2-hpc1"
    module load "makedepf90/2.8.8"
    
    # machine specific settings:
    MACHINE="metno-nebula"
    MACHINE="metno-fahrenheit"

    ;;

@@ -102,7 +100,7 @@ esac
cd src

# remove old object files etc:
make clean
#make clean

# replace include file if necessary:
if ( grep '#define _MPI' 'cso.inc' > /dev/null ) ; then
@@ -112,8 +110,8 @@ if ( grep '#define _MPI' 'cso.inc' > /dev/null ) ; then
EOF
fi

## update dependencies, this requires 'makedepf90'
#make deps
# update dependencies, this requires 'makedepf90'
make deps

# make executable:
make ${exe} MACHINE=${MACHINE}
@@ -131,7 +129,7 @@ echo ""
echo "run ..."

# cleanup:
make clean
#make clean

# run:
./src/${exe}
+44 −23
Original line number Diff line number Diff line
@@ -24,20 +24,16 @@ NPE=4
case `hostname` in

  #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  # TNO / HPC3:
  # TNO / HPC4:
  app-hpc* )
  #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    # module commands:
    module purge
    module load "slurm/18.08.8"
    module load "gcc/8.2.0"
    module load "gcc-suite/8.2.0"
    module load "openmpi/4.0.5"
    module load "curl/default"
    module load "openssl/default"
    module load "netcdf-c/4.7.4"
    module load "netcdf-fortran/4.5.3"
    module load "gcc-suite/9.5.0"
    module load "openmpi/4.1.3"
    module load "netcdf-c/4.9.2"
    module load "netcdf-fortran/4.6.1"
    module load "makedepf90"
    
    # machine specific settings:
@@ -46,20 +42,45 @@ case `hostname` in
    ;;

  #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  # MET Norway / Nebula:
  nebula.* )
  # MET Norway / PPI:
  ppi-* )
  #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    # compiler version and key used in module names:
    export COMPILER_VERSION="intelPE2018" ; compkey="intel2018"
    # modules do not export installation paths ...
    #~ HDF5 libraray:
    export HDF5_VERSION="1.10.5-${compkey}"
    export HDF5_HOME="/modules/centos7/hdf5/${HDF5_VERSION}"
    #~ NetCDF libraray:
    export NETCDF_VERSION="4.7.0-${compkey}"
    export NETCDF_HOME="/modules/centos7/netcdf/${NETCDF_VERSION}"

    # module commands:
    module --force purge
    module load "mpprun/4.0"
    module load "nsc/.1.0"
    module load "buildenv-intel/2018a-eb"
    module load "netCDF/4.4.1.1-HDF5-1.8.19-nsc1-intel-2018a-eb"
    #module load "Python/3.7.0-anaconda-5.3.0-extras-nsc1"
    module load "compiler/${COMPILER_VERSION}"
    module load "hdf5/${HDF5_VERSION}"
    module load "netcdf/${NETCDF_VERSION}"
    module load "makedepf90/default"
    
    # machine specific settings:
    MACHINE="metno-ppi"

    ;;

  #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  # MET Norway / Fahrenheit:
  fahrenheit* )
  #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    # module commands:
    module purge
    module load "buildenv-intel/2023.1.0-hpc1"
    module load "netCDF-HDF5/4.9.2-1.12.2-hpc1"
    module load "makedepf90/2.8.8"
    
    # machine specific settings:
    MACHINE="metno-nebula"
    MACHINE="metno-fahrenheit"

    ;;

@@ -95,8 +116,8 @@ if ! ( grep '#define _MPI' 'cso.inc' > /dev/null ) ; then
EOF
fi

## update dependencies:
#make deps
# update dependencies, this requires 'makedepf90'
make deps

# make executable:
make ${exe} MACHINE=${MACHINE} MPI=yes
@@ -122,7 +143,7 @@ jbfile="${jbname}.jb"
case `hostname` in

  #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  # TNO / HPC3:
  # TNO / HPC4:
  app-hpc* )
  #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

@@ -161,8 +182,8 @@ EOF
    ;;

  #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  # MET Norway / Nebula:
  nebula.* )
  # MET Norway / Fahrenheit:
  fahrenheit* )
  #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    # fill:
+6 −12
Original line number Diff line number Diff line
@@ -15,7 +15,7 @@ else
endif

# default flags, similar to what is used in EMEP:
FFLAGS_DEFAULT = -extend-source -fpp -recursive -r8 -convert big_endian -shared-intel -assume noold_maxminloc -ftz
FFLAGS_DEFAULT = -extend-source -recursive -r8

# optimization flags:
FFLAGS_OPTIM   = -O0 -g -traceback -check all -check noarg_temp_created -debug-parameters all -ftrapuv -fpe0
@@ -25,16 +25,10 @@ FFLAGS_OPTIM = -O0 -g -traceback -check all -check noarg_temp_created -debug-p
FFLAGS  = $(FFLAGS_DEFAULT) $(FFLAGS_OPTIM)
LDFLAGS =

# library:
NETCDF_FORTRAN_HOME = ${EBROOTNETCDF}
NETCDF_FORTRAN_INCS = -I${NETCDF_FORTRAN_HOME}/include
NETCDF_FORTRAN_LIBS = -L${NETCDF_FORTRAN_HOME}/lib -lnetcdff -Wl,-rpath -Wl,${NETCDF_FORTRAN_HOME}/lib

# library:
NETCDF_C_HOME = ${EBROOTNETCDF}
NETCDF_C_INCS =
NETCDF_C_LIBS = -L${NETCDF_C_HOME}/lib -lnetcdf -Wl,-rpath -Wl,${NETCDF_C_HOME}/lib
# single source for NETCDF libs:
NETCDF_INCS = -I${NETCDF_DIR}/include
NETCDF_LIBS = -L${NETCDF_DIR}/lib -lnetcdf -lnetcdff -Wl,-rpath -Wl,${NETCDF_DIR}/lib

# collect:
INCS = $(NETCDF_FORTRAN_INCS) $(NETCDF_C_INCS)
LIBS = $(NETCDF_FORTRAN_LIBS) $(NETCDF_C_LIBS)
INCS = $(NETCDF_INCS)
LIBS = $(NETCDF_LIBS)