TNO Intern

Commit 0e8cdac4 authored by Arjo Segers's avatar Arjo Segers
Browse files

Updated template settings for Nebula.

parent 5b1c1e26
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -8,8 +8,8 @@ Content
src/
  Fortran sources.

tutorial.rc
  Settings used by main program.
tutorial_*.rc
  Settings used by tutorial programs.

launcher*
  Scripts to compile and run/submit.
+26 −0
Original line number Diff line number Diff line
@@ -39,6 +39,32 @@ case `hostname` in

    ;;

  #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  # 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 "compiler/${COMPILER_VERSION}"
    module load "hdf5/${HDF5_VERSION}"
    module load "netcdf/${NETCDF_VERSION}"
    
    # machine specific settings:
    MACHINE="metno-ppi"

    ;;

  #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  # MET Norway / Nebula:
  nebula.* )
+2 −5
Original line number Diff line number Diff line
@@ -173,11 +173,8 @@ EOF
#SBATCH --nodes=1
#SBATCH --ntasks-per-node=${NPE}
#SBATCH --time=00:10:00
#SBATCH --output=${jbname}.out.%t
#SBATCH --error=${jbname}.err.%t

# specific for EMEP model?
export MPI_BUFS_PER_PROC=2048 MPI_MSGS_MAX=2097152
#SBATCH --output=${jbname}.out
#SBATCH --error=${jbname}.err

#
# NSC job launcher for MPI programs;
+1 −1
Original line number Diff line number Diff line
@@ -68,7 +68,7 @@ clean:
	rm -f *.mod *.o *.x
	rm -f *.nc

test.x:
test.x: cso_tools.F90
	$(FC) -o $@ $(FFLAGS) cso_tools.F90

+2 −2
Original line number Diff line number Diff line
@@ -18,8 +18,8 @@ endif
FFLAGS_DEFAULT = -extend-source -fpp -recursive -r8 -convert big_endian -shared-intel -assume noold_maxminloc -ftz

# optimization flags:
#FFLAGS_OPTIM   = -O0 -g -traceback -check all -check noarg_temp_created -debug-parameters all -ftrapuv -fpe0
FFLAGS_OPTIM   = -O3
FFLAGS_OPTIM   = -O0 -g -traceback -check all -check noarg_temp_created -debug-parameters all -ftrapuv -fpe0
#FFLAGS_OPTIM   = -O3

# combine:
FFLAGS  = $(FFLAGS_DEFAULT) $(FFLAGS_OPTIM)
Loading