Skip to content
Snippets Groups Projects
Commit 3e235636 authored by Sebastien Masson's avatar Sebastien Masson
Browse files

Resolve "compile BENCH without any NetCDF library"

parent e1517928
No related branches found
No related tags found
No related merge requests found
......@@ -216,14 +216,14 @@ done
# Nemo debug ?
if [ -n "${NEMO_DBG}" ]; then
if [ $( grep -c "^%DEBUG_FCFLAGS" ${COMPIL_DIR}/$1 ) -eq 0 ]; then
if (! grep -q "^%DEBUG_FCFLAGS" ${COMPIL_DIR}/$1 ); then
echo "ERROR: You must defined '%DEBUG_FCFLAGS' in your arch file if you want to compile Nemo in debug mode using '-d' option"
exit 1
fi
# duplicate the lines starting with %DEBUG_XXX and replace, in the duplicated line, %DEBUG_XXX by %XXX
sed -i "/^%DEBUG_/{p;s/^%DEBUG_\([^ ]*\)/%\1/;}" ${COMPIL_DIR}/$1
else
if [ $( grep -q "^%PROD_FCFLAGS" ${COMPIL_DIR}/$1 ) -eq 0 ]; then
if (! grep -q "^%PROD_FCFLAGS" ${COMPIL_DIR}/$1 ); then
echo "WARNING: '%PROD_FCFLAGS' not defined in your arch file, makenemo will use '%FCFLAGS' instead"
fi
# duplicate the lines starting with %PROD_XXX and replace, in the duplicated line, %PROD_XXX by %XXX
......
#!/bin/bash
#set -x
set -o posix
#set -u
#set -e
#+
# ===============
# Ffetch_extdir.sh
# ===============
# ---------------
# Make the config
# ---------------
# SYNOPSIS
# ========
# ::
# $ Ffetch_extdir.sh
# DESCRIPTION
# ===========
# - Make the config directory
# - Create repositories needed :
#
# - EXP00 for namelist
# - MY_SRC for user sources
# - BLD for compilation
# EXAMPLES
# ========
# ::
# $ ./Ffetch_extdir.sh CONFIG_NAME REMOTE_CTL
# TODO
# ====
# option debug
# EVOLUTIONS
# ==========
# $Id: Ffetch_extdir.sh 3715 2012-11-28 16:06:02Z acc $
# * creation
#-
basedir=$(pwd)
cd ${1}
wget ${2} -O remote_file.list
#
if [ -f remote_file.list ] ; then
cat remote_file.list | grep -v '^#' |
while
read remfile locfile
do
if [ $remfile == 'create_directory' ] ;then
mkdir $locfile
else
wget $remfile -O $locfile
fi
done
fi
cd $basedir
......@@ -14,7 +14,6 @@ search_src 1
src::ioipsl $MAIN_DIR/ext/IOIPSL/src
src::nemo $CONFIG_DIR/$NEW_CONF/WORK
src::ppr_1d $MAIN_DIR/ext/PPR/src
bld::target nemo.exe
bld::exe_dep
......@@ -36,10 +35,8 @@ bld::tool::make %MK
# Pre-process code before analysing dependencies
bld::pp::ioipsl 1
bld::pp::nemo 1
bld::pp::ppr_1d 1
bld::tool::fppflags::nemo %FPPFLAGS
bld::tool::fppflags::ioipsl %FPPFLAGS
bld::tool::fppflags::ppr_1d %FPPFLAGS
# Ignore the following dependencies
bld::excl_dep inc::netcdf.inc
......
# ----------------------- FCM extract configuration file -----------------------
cfg::type bld
cfg::version 1.0
# ------------------------------------------------------------------------------
# Build information
# ------------------------------------------------------------------------------
inc $COMPIL_DIR/arch_nemo.fcm
inc $COMPIL_DIR/cpp.fcm
search_src 1
src::nocdf $MAIN_DIR/ext/DUMMY_NETCDF
src::ioipsl $MAIN_DIR/ext/IOIPSL/src
src::nemo $CONFIG_DIR/$NEW_CONF/WORK
bld::target nemo.exe
bld::exe_dep
dir::root $NEMO_TDIR/$NEW_CONF/BLD
bld::tool::cpp %CPP
bld::tool::fpp %CPP
bld::tool::fc %FC
bld::tool::fflags %FCFLAGS %USER_INC
bld::tool::ld %LD
bld::tool::ldflags %LDFLAGS %USER_LIB
bld::tool::ar %AR
bld::tool::arflags %ARFLAGS
bld::tool::make %MK
# Pre-process code before analysing dependencies
bld::pp::nocdf 1
bld::pp::ioipsl 1
bld::pp::nemo 1
bld::tool::fppflags::nemo %FPPFLAGS
bld::tool::fppflags::nocdf %FPPFLAGS
bld::tool::fppflags::ioipsl %FPPFLAGS
# Ignore the following dependencies
bld::excl_dep inc::VT.inc
bld::excl_dep use::xios
bld::excl_dep h::mpif.h
bld::excl_dep inc::mpif.h
bld::excl_dep inc::mpe_logf.h
bld::excl_dep use::mpi
bld::excl_dep use::mod_oasis
bld::excl_dep use::mkl_dfti
bld::excl_dep use::cudafor
bld::excl_dep use::openacc
# Don't generate interface files
bld::tool::geninterface none
# Allow ".h90" as an extension for CPP include files
bld::infile_ext::h90 CPP::INCLUDE
# extension for module output
bld::outfile_ext::mod .mod
# rename executable to nemo.exe
bld::exe_name::model nemo.exe
# ----------------------- FCM extract configuration file -----------------------
cfg::type bld
cfg::version 1.0
# ------------------------------------------------------------------------------
# Build information
# ------------------------------------------------------------------------------
inc $COMPIL_DIR/arch_nemo.fcm
inc $COMPIL_DIR/cpp.fcm
search_src 1
src::nocdf $MAIN_DIR/ext/DUMMY_NETCDF
src::ioipsl $MAIN_DIR/ext/IOIPSL/src
src::agrif $MAIN_DIR/ext/AGRIF/AGRIF_FILES
src::nemo $CONFIG_DIR/$NEW_CONF/NEMOFILES/obj
src::ppr_1d $MAIN_DIR/ext/PPR/src
bld::target nemo.exe
bld::exe_dep
dir::root $NEMO_TDIR/$NEW_CONF/BLD
bld::tool::cpp %CPP
bld::tool::fpp %CPP
bld::tool::fc %FC
bld::tool::fflags %FCFLAGS %USER_INC
bld::tool::fflags::agrif %FFLAGS %USER_INC
bld::tool::ld %LD
bld::tool::ldflags %LDFLAGS %USER_LIB
bld::tool::ar %AR
bld::tool::arflags %ARFLAGS
bld::tool::make %MK
# Pre-process code before analysing dependencies
bld::pp::nocdf 1
bld::pp::ioipsl 1
bld::pp::nemo 1
bld::pp::agrif 1
bld::pp::ppr_1d 1
bld::tool::fppflags::nemo %FPPFLAGS -I$CONFIG_DIR/$NEW_CONF/NEMOFILES/inc
bld::tool::fppflags::nocdf %FPPFLAGS
bld::tool::fppflags::ioipsl %FPPFLAGS
bld::tool::fppflags::agrif %FPPFLAGS -include ${MAIN_DIR}/ext/AGRIF/nemo_mpi.h
bld::tool::fppflags::ppr_1d %FPPFLAGS
# Ignore the following dependencies
bld::excl_dep inc::VT.inc
bld::excl_dep use::xios
bld::excl_dep h::mpif.h
bld::excl_dep inc::mpif.h
bld::excl_dep inc::mpe_logf.h
bld::excl_dep use::mpi
bld::excl_dep use::mod_oasis
bld::excl_dep use::mkl_dfti
bld::excl_dep use::cudafor
bld::excl_dep use::openacc
# Don't generate interface files
bld::tool::geninterface none
# Allow ".h90" as an extension for CPP include files
bld::infile_ext::h90 CPP::INCLUDE
bld::infile_ext::f90 FPP::FPP9X::SOURCE
# extension for module output
bld::outfile_ext::mod .mod
# rename executable to nemo.exe
bld::exe_name::model nemo.exe
......@@ -37,8 +37,9 @@
!-----------------------------------------------------------------------
&namdom ! time and space domain
!-----------------------------------------------------------------------
rn_Dt = 900. ! time step for the dynamics (and tracer if nn_acc=0)
rn_Dt = 90. ! time step for the dynamics (and tracer if nn_acc=0)
rn_atfp = 0.05 ! asselin time filter parameter
ln_meshmask = .false. ! =T create a mesh file
/
!!======================================================================
......
......@@ -37,8 +37,9 @@
!-----------------------------------------------------------------------
&namdom ! time and space domain
!-----------------------------------------------------------------------
rn_Dt = 300. ! time step for the dynamics (and tracer if nn_acc=0)
rn_Dt = 30. ! time step for the dynamics (and tracer if nn_acc=0)
rn_atfp = 0.05 ! asselin time filter parameter
ln_meshmask = .false. ! =T create a mesh file
/
!!======================================================================
......
......@@ -37,8 +37,9 @@
!-----------------------------------------------------------------------
&namdom ! time and space domain
!-----------------------------------------------------------------------
rn_Dt = 3600. ! time step for the dynamics (and tracer if nn_acc=0)
rn_Dt = 360. ! time step for the dynamics (and tracer if nn_acc=0)
rn_atfp = 0.05 ! asselin time filter parameter
ln_meshmask = .false. ! =T create a mesh file
/
!!======================================================================
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment