Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
HOURDIN Christophe
pulsation-tools
Commits
7c57ad0f
Commit
7c57ad0f
authored
Apr 15, 2021
by
HOURDIN Christophe
Browse files
make master branch bench01_agrif_pisces_2tsp for the can11sen2 Senegal config
parent
ec286b28
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
96 additions
and
120 deletions
+96
-120
param_inputs/namelist.base_oce
param_inputs/namelist.base_oce
+2
-2
scripts/IRENE.header
scripts/IRENE.header
+2
-2
scripts/make_namelist_oce.sh
scripts/make_namelist_oce.sh
+51
-49
scripts/namelist_exp.sh
scripts/namelist_exp.sh
+41
-67
No files found.
param_inputs/namelist.base_oce
View file @
7c57ad0f
title:
<title_exp>
time_stepping: NTIMES dt[sec] NDTFAST NINFO
<ntimes> <dt>
6
0 1
<ntimes> <dt>
5
0 1
time_stepping_nbq: NDTNBQ CSOUND_NBQ VISC2_NBQ
1 1000 0.01
S-coord: THETA_S, THETA_B, Hc (m)
7.0d0
2
.0d0 200.0d0
7.0d0
0
.0d0 200.0d0
run_start_date:
01/04/2014 00:00:00
run_end_date:
...
...
scripts/IRENE.header
View file @
7c57ad0f
...
...
@@ -23,8 +23,8 @@
### skylake up 79056 96 78650 310 1647 2 1642 3 3750 48 2 24 1
#MSUB -q skylake
#MSUB -n 1
20
# number of MPI task
#MSUB -c
2
# number of threads by MPI task (for OPENMP or to reserve more memory)
#MSUB -n 1
44
# number of MPI task
#MSUB -c
1
# number of threads by MPI task (for OPENMP or to reserve more memory)
# #MSUB -N 4 # number of nodes to use (better to use -c option to reserve more memory)
#MSUB -x # requests exclusive usage of allocated nodes.
...
...
scripts/make_namelist_oce.sh
View file @
7c57ad0f
...
...
@@ -5,7 +5,7 @@ set -ue
##======================================================================
##======================================================================
## This script automatically modify the CROCO "namelist"
## This script automatically modify the CROCO "namelist"
croco.in
##======================================================================
##======================================================================
...
...
@@ -46,21 +46,29 @@ do
SUBTIME
=
1
fi
cpfile
${
JOBDIR
}
/
${
ASCII_DIR_IMG_ROOT
}
/param_inputs/namelist.base_oce
${
namfile
}
TSP_OCE_2
=
$((
${
TSP_OCE
}
/
${
SUBTIME
}
))
#-------
TSP_OCE_2
=
$((
${
TSP_OCE
}
/
${
SUBTIME
}
))
# time step used for each grid
## Number of time step per day
#-------
# nombre de pas de temps par jour
OCE_NTSP_DAY
=
$((
86400
/
${
TSP_OCE_2
}
))
# nombre de pas de temps du job
OCE_NTIMES
=
$((
(
${
JDAY_END_JOB
}
-
${
JDAY_BEGIN_JOB
}
+
1
)
*
${
OCE_NTSP_DAY
}
))
OCE_NTSP_PDAY
=
$((
86400
/
${
TSP_OCE_2
}
))
## Number of time step for the job
OCE_NTSP_PJOB
=
$((
(
${
JDAY_END_JOB
}
-
${
JDAY_BEGIN_JOB
}
+
1
)
*
${
OCE_NTSP_PDAY
}
))
if
${
TEST_FEW_NTIMES
}
;
then
OCE_NTSP_DAY
=
${
SUBTIME
}
OCE_NTIMES
=
$((
${
DNTIMES
}
*
${
SUBTIME
}
))
fi
if
${
TEST_FEW_NTIMES
}
;
then
OCE_NTSP_PDAY
=
$((
${
DNTIMES
}
*
${
SUBTIME
}
))
OCE_NTSP_PJOB
=
$((
${
DNTIMES
}
*
${
SUBTIME
}
))
fi
## Number of time step for writing output files
if
[
"
${
freq_out
}
"
==
"day"
]
;
then
freq_his2
=
$((
${
freq_his
}
*
${
OCE_NTSP_PDAY
}
))
freq_avg2
=
$((
${
freq_avg
}
*
${
OCE_NTSP_PDAY
}
))
elif
[
"
${
freq_out
}
"
==
"tsp"
]
;
then
freq_his2
=
$((
${
freq_his
}
*
${
SUBTIME
}
))
freq_avg2
=
$((
${
freq_avg
}
*
${
SUBTIME
}
))
fi
# printf "\n AGRIF: ${nn} : SUBTIME: ${SUBTIME} TSP_OCE_2: ${TSP_OCE_2} OCE_NTSP_DAY: ${OCE_NTSP_DAY} OCE_NT
IMES
=${OCE_NT
IMES
} \n"
# printf "\n AGRIF: ${nn} : SUBTIME: ${SUBTIME} TSP_OCE_2: ${TSP_OCE_2} OCE_NTSP_
P
DAY: ${OCE_NTSP_
P
DAY} OCE_NT
SP_PJOB
=${OCE_NT
SP_PJOB
} \n"
#
#-------
...
...
@@ -68,43 +76,37 @@ do
#-------
# General changes
#
sed
-e
"s/<title_exp>/
${
TITLE_EXP
}
/"
\
-e
"s/<dt>/
${
TSP_OCE_2
}
/"
\
-e
"s/<ntimes>/
${
OCE_NT
IMES
}
/"
\
-e
"s/<ntimesrst>/
${
OCE_NT
IMES
}
/"
\
-e
"s/<ntimeshis>/
$((
${
freq_his
}
*
${
OCE_NTSP_DAY
}
))
/"
\
-e
"s/<ntimesavg>/
$((
${
freq_avg
}
*
${
OCE_NTSP_DAY
}
))
/"
\
-e
"s/<ntimesdia>/
${
OCE_NT
IMES
}
/"
\
-e
"s/<ntimesdiaM>/
${
OCE_NT
IMES
}
/"
\
-e
"s/<ntimesdiabio>/
${
OCE_NT
IMES
}
/"
\
${
namfile
}
>
namelist.tmp
mv
namelist.tmp
${
namfile
}
sed
-e
"s/<title_exp>/
${
TITLE_EXP
}
/"
\
-e
"s/<dt>/
${
TSP_OCE_2
}
/"
\
-e
"s/<ntimes>/
${
OCE_NT
SP_PJOB
}
/"
\
-e
"s/<ntimesrst>/
${
OCE_NT
SP_PJOB
}
/"
\
-e
"s/<ntimeshis>/
${
freq_his
2
}
/"
\
-e
"s/<ntimesavg>/
${
freq_avg
2
}
/"
\
-e
"s/<ntimesdia>/
${
OCE_NT
SP_PJOB
}
/"
\
-e
"s/<ntimesdiaM>/
${
OCE_NT
SP_PJOB
}
/"
\
-e
"s/<ntimesdiabio>/
${
OCE_NT
SP_PJOB
}
/"
\
${
namfile
}
>
namelist.tmp
mv
namelist.tmp
${
namfile
}
if
[
${
nn
}
-gt
0
]
then
sed
-e
"s/croco_grd.nc/croco_grd.nc.
${
nn
}
/"
\
-e
"s/croco_frc.nc/croco_frc.nc.
${
nn
}
/"
\
-e
"s/croco_bry.nc/XXX /"
\
-e
"s/croco_ini.nc/croco_ini.nc.
${
nn
}
/"
\
-e
"s/croco_rst.nc/croco_rst.nc.
${
nn
}
/"
\
-e
"s/croco_his.nc/croco_his.nc.
${
nn
}
/"
\
-e
"s/croco_avg.nc/croco_avg.nc.
${
nn
}
/"
\
-e
"s/croco_dia.nc/croco_dia.nc.
${
nn
}
/"
\
-e
"s/croco_dia_avg.nc/croco_dia_avg.nc.
${
nn
}
/"
\
-e
"s/croco_diaM.nc/croco_diaM.nc.
${
nn
}
/"
\
-e
"s/croco_diaM_avg.nc/croco_diaM_avg.nc.
${
nn
}
/"
\
-e
"s/croco_diabio.nc/croco_diabio.nc.
${
nn
}
/"
\
-e
"s/croco_diabio_avg.nc/croco_diabio_avg.nc.
${
nn
}
/"
\
-e
"s/croco_frcbio.nc/croco_frcbio.nc.
${
nn
}
/"
\
${
namfile
}
>
namelist.tmp
mv
namelist.tmp
${
namfile
}
fi
#
#cat namelist
#
done
if
[
${
nn
}
-gt
0
]
;
then
sed
-e
"s/croco_grd.nc/croco_grd.nc.
${
nn
}
/"
\
-e
"s/croco_frc.nc/croco_frc.nc.
${
nn
}
/"
\
-e
"s/croco_bry.nc/XXX /"
\
-e
"s/croco_ini.nc/croco_ini.nc.
${
nn
}
/"
\
-e
"s/croco_rst.nc/croco_rst.nc.
${
nn
}
/"
\
-e
"s/croco_his.nc/croco_his.nc.
${
nn
}
/"
\
-e
"s/croco_avg.nc/croco_avg.nc.
${
nn
}
/"
\
-e
"s/croco_dia.nc/croco_dia.nc.
${
nn
}
/"
\
-e
"s/croco_dia_avg.nc/croco_dia_avg.nc.
${
nn
}
/"
\
-e
"s/croco_diaM.nc/croco_diaM.nc.
${
nn
}
/"
\
-e
"s/croco_diaM_avg.nc/croco_diaM_avg.nc.
${
nn
}
/"
\
-e
"s/croco_diabio.nc/croco_diabio.nc.
${
nn
}
/"
\
-e
"s/croco_diabio_avg.nc/croco_diabio_avg.nc.
${
nn
}
/"
\
-e
"s/croco_frcbio.nc/croco_frcbio.nc.
${
nn
}
/"
\
${
namfile
}
>
namelist.tmp
mv
namelist.tmp
${
namfile
}
fi
exit
done
scripts/namelist_exp.sh
View file @
7c57ad0f
...
...
@@ -9,47 +9,24 @@
# Config : Ocean - Atmosphere - Coupling
#-------------------------------------------------------------------------------
export
CONFIG
=
`
pwd
|
awk
-F
"/"
'{print $(NF-3)}'
`
export
TITLE_EXP
=
"Config
Pierre C. tests PULSATION Tools
"
export
TITLE_EXP
=
"Config
Senegal can11sen2 ("
`
date
"+%d %m %Y"
`
")
"
#-------------------------------------------------------------------------------
# Debug Modes
#-------------------------------------------------------------------------------
export
MODE_TEST
=
true
# for running different tests in the same exp with different names.
# Ability to submit different tests simultaneously
# export TEST_NAME=".test_strongdust_555"
# export TEST_NAME="_02_define_WET_DRY_sans_zoombc_2D_Syni.F"
# export TEST_NAME="_01Adefine_WET_DRY_avec_zoombc_2D_Syni.F"
# export TEST_NAME="_test_sans_AGRIF_avec_zoombc_2D.F.SPOUS"
# export TEST_NAME="_test_avec_AGRIF"
# export TEST_NAME="_test_12x12"
# export TEST_NAME="_test_sans_AGRIF_6x24_procs_pdt_400_rst_sans_AGRIF"
# export TEST_NAME="_test_sans_AGRIF_6x24_procs_pdt_600_rst_sans_AGRIF"
# export TEST_NAME="_test_12x12"
# export TEST_NAME="_test_sans_AGRIF_4x24_procs_pdt_400_rst_sans_AGRIF"
# export TEST_NAME="_test_sans_AGRIF_3x40_procs_pdt_400_rst_sans_AGRIF"
# export TEST_NAME="_test_sans_AGRIF_5x24_procs_pdt_400_rst_sans_AGRIF"
# export TEST_NAME="_test_sans_AGRIF_3x40_procs_pdt_400_rst_sans_AGRIF_sans_PISCES"
# export TEST_NAME="_test_sans_AGRIF_4x30_procs_pdt_400_rst_sans_AGRIF_sans_PISCES"
# export TEST_NAME="_test_sans_AGRIF_4x30_procs_pdt_400_rst_sans_AGRIF"
# export TEST_NAME="_test_avec_AGRIF_4x30_procs_pdt_600_rst"
# export TEST_NAME="_test_sans_AGRIF_2x12_procs_pdt_400_rst_sans_AGRIF"
# export TEST_NAME="_test_2x12_avec_2_noeuds"
# export TEST_NAME="_remake_Pierre_c11s2cp_climatoruns_151020"
# export TEST_NAME="_remake_001_c11s2cp_climatoruns_151020"
# export TEST_NAME="_test_avec_AGRIF_6x24_undef_BIO_HADV_WENO5"
# export TEST_NAME="_test_sans_AGRIF_6x24_undef_BIO_HADV_WENO5"
# export TEST_NAME="_test_sans_AGRIF_6x24"
# export TEST_NAME="_test_avec_AGRIF_6x24"
# export TEST_NAME="_test_script1"
# export TEST_NAME="_remake_Pierre_c11s2cp_climatoruns_151020_openmpi_2.0.4.14_flavor_cea"
# export TEST_NAME="_remake_002_c11s2cp_climatoruns_151020_openmpi_2.0.4.14_flavor_cea"
# export TEST_NAME="_test_bug_aleatoire"
export
TEST_NAME
=
"_test1"
# export TEST_NAME="_remake_Pierre_c11s2cp_climatoruns_151020"
# export TEST_NAME="_remake_001_c11s2cp_climatoruns_151020"
# export TEST_NAME="_test_avec_AGRIF_6x24_undef_BIO_HADV_WENO5"
# export TEST_NAME="_verif_croco.in_v2.00-THETA_B_0.00"
# export TEST_NAME="_001_verif"
export
TEST_NAME
=
"_bench01_agrif_pisces_2tsp"
export
TEST_SCRIPT
=
false
# the job is not submited
export
TEST_FEW_NTIMES
=
true
# replace the job timestep number by DNTIMES
export
DNTIMES
=
1
# number of timsteps for the parent grid ( wich corresponds to 1 month in the script)
export
DNTIMES
=
2
# number of timsteps for the parent grid ( wich corresponds to 1 month in the script)
#-------------------------------------------------------------------------------
...
...
@@ -57,46 +34,48 @@ export TEST_FEW_NTIMES=true # replace the job timestep number by DNTIMES
#-------------------------------------------------------------------------------
export
USE_OCE
=
true
export
MODEL_OCE
=
"croco"
# (written for croco)
# Time Step
export
TSP_OCE
=
400
export
TSP_ICE
=
$((
3
*
$TSP_OCE
))
# Output frequency
if
[
"
${
MODEL_OCE
}
"
==
"croco"
]
;
then
export
out_list
=
"avg his"
# export freq_out='day'; export freq_his=1; export freq_avg=5;
export
freq_out
=
'tsp'
;
export
freq_his
=
2
;
export
freq_avg
=
2
;
fi
# AGRIF
export
AGRIFZ
=
0
# 0 for no AGRIF , n for n grids
export
USE_AGRIF_2WAY
=
true
# 1-WAY by default or Activate 2-WAY nesting (update parent solution by child solution)
export
AGRIFZ
=
1
# 0 for no AGRIF , n for n grids
export
USE_AGRIF_2WAY
=
true
# 1-WAY by default or Activate 2-WAY nesting (update parent solution by child solution)
# WARNING : if AGRIFZ=0 et USE_AGRIF_2WAY=true... compilation error?? ... wetdry_.f(282): error #6404:
# BIOLOGY
export
USE_BIOLOGY
=
fals
e
export
USE_PISCES
=
true
export
USE_BIOLOGY
=
tru
e
export
USE_PISCES
=
true
# MPI
export
USE_MPI
=
true
export
NPROC_X
=
4
export
NPROC_Y
=
30
export
USE_MPI
=
true
export
NPROC_X
=
12
export
NPROC_Y
=
12
# adjust the COMPUTER header!!
# OpenMP
export
USE_OPENMP
=
false
export
NPP
=
4
export
USE_OPENMP
=
false
export
NPP
=
4
# XIOS
export
USE_XIOS
=
false
export
NXIOS
=
16
#4
export
NXIOSper
=
-1
export
USE_XIOS
=
false
export
NXIOS
=
16
#4
export
NXIOSper
=
-1
# Output frequency
export
out_list
=
"avg his"
export
freq_avg
=
5
export
freq_his
=
1
if
${
TEST_FEW_NTIMES
}
;
then
# freq = 1d for all output files
export
out_list
=
"his"
export
freq_his
=
1
fi
# files to save in ascii job dir for archive after running
# files to save in ascii jobdir after running
if
[
"
${
MODEL_OCE
}
"
==
"croco"
]
;
then
export
PUT_FILES_OCE
=
"croco.in* out_run.txt croco_cpp.txt listing*"
${
USE_BIOLOGY
}
&&
{
export
PUT_FILES_OCE
=
"
${
PUT_FILES_OCE
}
kRGB61.txt* namelist_pisces_cfg* namelist_pisces_ref* output.namelist.pis*"
;
}
[
${
AGRIFZ
}
-ge
1
]
&&
{
export
PUT_FILES_OCE
=
"
${
PUT_FILES_OCE
}
AGRIF_FixedGrids.in"
;
}
fi
#-------------------------------------------------------------------------------
# Atmospheric model
...
...
@@ -104,25 +83,20 @@ export USE_OCE=true
export
USE_ATM
=
false
export
MODEL_ATM
=
"wrf"
# files to save in ascii job dir for archive after running
# Time Step
export
TSP_ATM
=
460
# files to save in ascii jobdir after running
if
[
"
${
MODEL_ATM
}
"
==
"wrf"
]
;
then
export
PUT_FILES_ATM
=
"namelist.input rsl.error.0000 rsl.out.000"
fi
#-------------------------------------------------------------------------------
# Coupler
#-------------------------------------------------------------------------------
export
USE_CPL
=
${
USE_ATM
}
&&
${
USE_OCE
}
#-------------------------------------------------------------------------------
# Time Steps
#-------------------------------------------------------------------------------
# Ocean model
export
TSP_OCE
=
600
export
TSP_ICE
=
$((
3
*
$TSP_OCE
))
# Atmospheric model
export
TSP_ATM
=
460
# Coupler
# Time Step
export
CPL_FREQ
=
7200
#-------------------------------------------------------------------------------
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment