Skip to content

Commit

Permalink
store wip for awiesm3.4 on juwels
Browse files Browse the repository at this point in the history
  • Loading branch information
JanStreffing committed Feb 7, 2025
1 parent 5dd5fc7 commit 041dbec
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 20 deletions.
6 changes: 2 additions & 4 deletions configs/components/oifs/oifs48.env.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

add_environment_changes:
add_module_actions:
- "load python3"
- "load Python"
add_add_add_export_vars:
DATA: "${general.work_dir}"
LD_LIBRARY_PATH[(3)]: '$LD_LIBRARY_PATH:${thisrun_work_dir}/lib/oifs/'
Expand All @@ -14,15 +14,13 @@ add_environment_changes:
levante:
compiler_mpi: gnu11_ompi4
iolibraries: system_gnu_libs
#compiler_mpi: intel2022_impi2021
#iolibraries: system_libs
add_add_export_vars:
OIFS_DATA_DIR: "/p/project/chhb19/streffing1/input/oifs-48r1/"
MKL_CBWR: AUTO,STRICT

juwels:
compiler_mpi: gnu2023_ompi2023
iolibraries: system_libs
iolibraries: awi_libs
add_add_export_vars:
MKL_CBWR: AUTO,STRICT

9 changes: 7 additions & 2 deletions configs/components/rnfmap/rnfmap.env.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,13 @@ compiletime_environment_changes:
RNF_NETCDFF_INCLUDE: '"-I$NETCDFFROOT/include"'
RNF_NETCDFF_LIB: '"-L$NETCDFFROOT/lib -lnetcdff"'
# compilers and compile switches
RNF_FFLAGS: '"-r8 -fp-model precise -align array32byte -O1 ${computer.OpenMP_flag} -xCORE_AVX2 -g -traceback -convert big_endian -fpe0"'
RNF_CFLAGS: '"-r8 -fp-model precise -align array32byte -O1 ${computer.OpenMP_flag} -xCORE_AVX2 -g -traceback -convert big_endian -fpe0"'
choose_computer.compiler_mpi:
gnu2023_ompi2023:
RNF_FFLAGS: '"-fdefault-real-8 -march=core-avx2 -mtune=core-avx2 -O3 -fopenmp -g -fbacktrace -fconvert=big-endian"'
RNF_CFLAGS: '"-march=core-avx2 -mtune=core-avx2 -O3 -fopenmp -g -fbacktrace -fno-opt-report -fpe0"'
intel2025_psmpi:
RNF_FFLAGS: '"-r8 -fp-model precise -align array32byte -O1 ${computer.OpenMP_flag} -xCORE_AVX2 -g -traceback -convert big_endian -fpe0"'
RNF_CFLAGS: '"-r8 -fp-model precise -align array32byte -O1 ${computer.OpenMP_flag} -xCORE_AVX2 -g -traceback -convert big_endian -fpe0"'

levante:
add_export_vars:
Expand Down
5 changes: 3 additions & 2 deletions configs/machines/juwels.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ jobtype: compute
accounting: true

# default settings for compiler, mpi and I/O libs
compiler_mpi: intel2025_psmpi
iolibraries: none
compiler_mpi: gnu2023_ompi2023

iolibraries: system_libs
useMPI: intelmpi

# slurm setup
Expand Down
8 changes: 4 additions & 4 deletions configs/setups/awicm3/awicm3.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -412,8 +412,8 @@ oifs:
iolibraries: awi_libs
choose_computer.name:
juwels:
#compiler_mpi: intel2022_ompi2022
compiler_mpi: intel2024_psmpi2024
iolibraries: system_libs
compiler_mpi: intel2025_psmpi
blogin:
iolibraries: geomar_libs
glogin:
Expand All @@ -431,8 +431,8 @@ oifs:
iolibraries: awi_libs
choose_computer.name:
juwels:
#compiler_mpi: intel2022_ompi2022
compiler_mpi: intel2024_psmpi2024
iolibraries: system_libs
compiler_mpi: intel2025_psmpi
blogin:
iolibraries: geomar_libs
glogin:
Expand Down
19 changes: 11 additions & 8 deletions configs/setups/awiesm3/awiesm3.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,6 @@ general:
- fesom-2.6+oifs-48r1+xios-2.5+lpj_guess-4.1.2
add_include_models:
- xios
add_add_environment_changes:
levante:
iolibraries: system_gnu_libs
oasis_with_yac: False
xios_interp_order: 1

Expand Down Expand Up @@ -67,10 +64,13 @@ general:
- xios/xios.env.yaml
- rnfmap/rnfmap.env.yaml

# add_environment_changes:
# choose_computer.name:
# levante:
# compiler_mpi: intel2022_openmpi
add_add_environment_changes:
levante:
iolibraries: system_gnu_libs
juwels:
compiler_mpi: gnu2023_ompi2023
iolibraries: awi_libs


#########################################################################################
########### necessary changes to submodels compared to standalone setups ################
Expand Down Expand Up @@ -434,7 +434,6 @@ oasis3mct:
v2a_seq: 2
v2a_lag: "86400"

coupling_time_step: "${oasis3mct.time_step}"
choose_general.major_version:
'v3.4':
add_process_ordering:
Expand Down Expand Up @@ -466,6 +465,8 @@ oasis3mct:
rstas_file_name: 'rstas'
vegin_file_name: 'vegin'

coupling_time_step: "${oasis3mct.time_step}"
land_atmo_coupling_time_step: 86400

coupling_directions:
'atma->feom':
Expand All @@ -483,9 +484,11 @@ oasis3mct:
'${lpj_guess.mygrid}-land->atma':
lag: ${v2a_lag}
seq: ${v2a_seq}
coupling_time_step: ${land_atmo_coupling_time_step}
'atma->${lpj_guess.mygrid}-land':
lag: ${a2v_lag}
seq: ${a2v_seq}
coupling_time_step: ${land_atmo_coupling_time_step}


coupling_methods:
Expand Down
3 changes: 3 additions & 0 deletions src/esm_runscripts/oasis.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,9 @@ def add_coupling(
# this part was broke, confused seq with nb of trafo lines

seq = int(direction.get("seq", "2"))

coupling_time_step = direction.get("coupling_time_step", coupling_time_step)

# if transformation.get("postprocessing", {}).get("conserv", {}).get("method"):
# seq += 1

Expand Down

0 comments on commit 041dbec

Please sign in to comment.