Skip to content
Snippets Groups Projects
Commit 46aa70e4 authored by Gab's avatar Gab
Browse files

added occigen-bdw files

parent f0b6782c
No related branches found
No related tags found
No related merge requests found
# generic ifort compiler options for linux
#
# NCDF_HOME root directory containing lib and include subdirectories for netcdf4
# HDF5_HOME root directory containing lib and include subdirectories for HDF5
# XIOS_HOME root directory containing lib for XIOS
# OASIS_HOME root directory containing lib for OASIS
#
# NCDF_INC netcdf4 include file
# NCDF_LIB netcdf4 library
# XIOS_INC xios include file (taken into accound only if key_iomput is activated)
# XIOS_LIB xios library (taken into accound only if key_iomput is activated)
# OASIS_INC oasis include file (taken into accound only if key_oasis3 is activated)
# OASIS_LIB oasis library (taken into accound only if key_oasis3 is activated)
#
# FC Fortran compiler command
# FCFLAGS Fortran compiler flags
# FFLAGS Fortran 77 compiler flags
# LD linker
# LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries
# FPPFLAGS pre-processing flags
# AR assembler
# ARFLAGS assembler flags
# MK make
# USER_INC complete list of include files
# USER_LIB complete list of libraries to pass to the linker
# CC C compiler used to compile conv for AGRIF
# CFLAGS compiler flags used with CC
#
# Note that:
# - unix variables "$..." are accpeted and will be evaluated before calling fcm.
# - fcm variables are starting with a % (and not a $)
#
%NCDF_HOME $NETCDFC_LIBDIR
%HDF5_HOME $HDF5_DIR
%XIOS_HOME $xios_path
%OASIS_HOME /not/defiled
%NCDF_INC -I%NCDF_HOME/include
%NCDF_LIB -L%NCDF_HOME/lib -lnetcdff -lnetcdf -L%HDF5_HOME/lib -lhdf5_hl -lhdf5 -lhdf5
%XIOS_INC -I%XIOS_HOME/inc
%XIOS_LIB -L%XIOS_HOME/lib -lxios -lstdc++
%OASIS_INC -I%OASIS_HOME/build/lib/mct -I%OASIS_HOME/build/lib/psmile.MPI1
%OASIS_LIB -L%OASIS_HOME/lib -lpsmile.MPI1 -lmct -lmpeu -lscrip
%CPP cpp
%FC mpiifort -c -cpp
%FCFLAGS -i4 -r8 -O3 -fp-model precise -fno-alias
%FFLAGS %FCFLAGS
%LD mpiifort
%LDFLAGS
%FPPFLAGS -P -C -traditional
%AR ar
%ARFLAGS rs
%MK gmake
%USER_INC %XIOS_INC %OASIS_INC -I$NETCDFC_INCDIR -I$NETCDFFORTRAN_INCDIR -I$HDF5_ROOT/include
%USER_LIB %XIOS_LIB %OASIS_LIB -L$NETCDFC_LIBDIR -L$NETCDFFORTRAN_LIBDIR -lnetcdf -lnetcdff -L$HDF5_ROOT/lib -lhdf5
%CC cc
%CFLAGS -O0
################################################################################
#################### Projet XIOS ###################
#################################################################################
%CCOMPILER mpiicc
%FCOMPILER mpiifort
%LINKER mpiifort -nofor-main
%BASE_CFLAGS -diag-disable 1125 -diag-disable 279 -std=c++11
%PROD_CFLAGS -O3 -D BOOST_DISABLE_ASSERTS
%DEV_CFLAGS -g -traceback
%DEBUG_CFLAGS -DBZ_DEBUG -g -traceback -fno-inline
%BASE_FFLAGS -D__NONE__
%PROD_FFLAGS -O3
%DEV_FFLAGS -g -O2 -traceback
%DEBUG_FFLAGS -g -traceback
%BASE_INC -D__NONE__
%BASE_LD -lstdc++
%CPP mpiicc -EP
%FPP cpp -P
%MAKE gmake
#!/bin/bash
#SBATCH --job-name=nemo # nom du job
#SBATCH --ntasks=3960 # Nombre total de processus MPI
#SBATCH --cpus-per-task=1
#SBATCH -C BDW28
#SBATCH --time=01:00:00 # Temps d?exécution maximum demande (HH:MM:SS)
#SBATCH --output=nemo.out # Nom du fichier de sortie
#SBATCH --error=nemo.err # Nom du fichier d'erreur (ici commun avec la sortie)
#
set -x
source env_bench
resolution=1
cp ${NEMO_DIR}/release-4.0/tests/BENCH/EXP00/* .
jpni=60
jpnj=66
sed -e "s/jpni *=.*/jpni = ${jpni}/" -e "s/jpnj *=.*/jpnj = ${jpnj}/" -e "s/nn_itend *=.*/nn_itend = 20000/" -e "s/ln_timing *=.*/ln_timing = .true./" namelist_cfg_orca${resolution}_like > namelist_cfg
time srun ./nemo > job.out
module purge
module load git intel intelmpi hdf5 netcdf
GIT_ROOT=`git rev-parse --show-toplevel`
NEMO_DIR=$GIT_ROOT/NEMO
EXE=$NEMO_DIR/release-4.0/tests/BENCH/BLD/bin/nemo.exe
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment