Advanced settings

This part of the documentation covers advanced configuration options and performance-related settings for EC-Earth 4 experiments. These settings are often hard-coded or pre-configured per platform, but may require adjustment depending on your specific use case, resolution, precision, and computational setup.

Unlike the simple experiment setup covered in Running simple experiments, this section focuses on tweaking configurations, optimizations and custom model behaviours that experienced users may need to tune for their particular computational environment and requirements.

Specifying these settings is not necessary for most users and they are not present in experiment-config-example.yml by default, but they can be introduced in the experiment configuration file and their values will be used when running the experiment. This is achieved by - when: not model_config.oifs.nproma in the SE config templates that generate the final configuration files for OpenIFS and NEMO.

Resolution-varying parameters in OpenIFS and NEMO

Here we list model parameters in OpenIFS and NEMO which change with grid resolution and give some motivation why. Users can modify these values but should be careful in doing so as it can lead to less realistic climates or numerial issues.

NEMO

changes from eORCA1_ISO to ORCA2

  • Increase time step to 5400s for CFL-criterion and faster execution

  • Lateral diffusive length scale rn_Ld = 200e+3 for stability

  • Lateral viscous length scale rn_Lv = 200.e+3 for stability

changes from eORCA1_ISO to eORCA025

  • Decrease time step to 1800s for CFL-criterion

  • nn_fct_v=4 for 4th-order vertical advection. nn_fct_v=2 required for _ISO grids.

  • Lateral diffusive length rn_Ld = 25e+3 for stability

  • Eddy-induced velocities off, ln_ldfeiv=F, since grid can resolve 1st baroclinic Rossby radius in low and middle latitudes.

  • Hollingsworth correction, nn_dynkeg=1, to improve mesoscale eddy dynamics.

  • Switch Laplacian viscosity to bi-Laplacian, ln_dynldf_blp=T to focus dissipation at smallest scales.

  • Lateral viscous velocity and length scales, rn_Uv=0.115 and rn_Lv=25.e+3 for stability.

  • Adaptive vertical advection scheme, ln_zad_Aimp=T. Better numerical stability and allows longer time steps.

Note that nn_etau = 1 is default for all configurations but causes unrealistically weak AMOC in ORCA1. The tuning files tuning_v0.3.yml (activated by default) will set nn_etau = 0 and should be used for ORCA1.

OpenIFS

changes from TL255L91 to TL63L31

  • Increase time step to 3600s for faster execution

  • Radiation calculations every 3 hours, NRADFR = -3

changes from TL255L91 to TCO399L91

  • Decrease time step to 900s for stability and ECMWF recommendation <https://confluence.ecmwf.int/display/OIFS/3+Horizontal+Resolution+and+Configurations>

  • Turn off filtering of pressure gradients, LGRADSP=F, which is not necessary for TCO grids

changes for TCO1279L137 (high-resolution storyline simulations)

  • Very short time step of 450s required for numerical stability at ~9km resolution

  • 137 vertical levels for improved vertical resolution

  • Typically used for short-term high-resolution storyline simulations rather than long climate runs

  • Weather-focused output configuration available via model_config.oifs.output.weather: true

Note

Some model parameters are scaled with grid resolution internally in the model. For example, non-orographic wave drag scales with grid resolution in OpenIFS.

OASIS

It is generally good to have a coupling step short enough to resolve the diurnal cycle, but a shorter coupling time step increases the cost of the model.

coupling steps

  • TL255-eORCA1: 5400s. Shortest possible for atm step 1800s and oce step 2700s.

  • TL63L31-ORCA2: 10800s. Align with radiation calculation and reduce coupling cost.

  • TCO399-eORCA025: 3600s. Align with radiation calculation.

High-resolution storyline simulations

EC-Earth 4 supports ultra-high-resolution simulations for weather storyline studies using the TCO1279L137 grid configuration. This resolution (~9km horizontal, 137 vertical levels) is primarily designed for short-term, high-fidelity simulations that capture detailed weather phenomena and regional climate features.

Use cases

Storyline simulations at TCO1279 resolution are used for detailed studies of weather extremes, regional climate impacts, and atmospheric processes at scales relevant to local decision-making.

Configuration for TCO1279L137

To run a TCO1279L137 simulation, specify the grid in your experiment configuration:

model_config:
  oifs:
    grid: TCO1279L137

The model will automatically configure:

  • Time step: 450s (required for numerical stability)

  • Vertical levels: 137

  • Appropriate OASIS coupling parameters

Initial conditions and nudging

Initial conditions for TCO1279L137 can be downloaded from the OpenIFS Data Hub.

For nudging simulations (Newtonian relaxation to reanalysis), EC-Earth 4 includes tools to generate nudging files from reanalysis data. Nudging helps constrain the model to observed atmospheric states while allowing it to develop small-scale features consistent with the high resolution.

Known limitations

Warning

ICMCL file reading crash (`ECE_CLIMR` issue):

Running with ECE_CLIMR = .TRUE. currently causes crashes during ICMCL file reading in this configuration.

As a workaround (which is reasonable for short nudged runs), ECE_CLIMR must be disabled (disabling AMIP reader OASIS updates in arpifs/ecearth/module/ecearth.F90 and arpifs/climate/updclie_oasis.F90). This can be achieved by commenting out ECE_CLIMR = .TRUE. in the source code prior to compiling:

# Disable ECE_CLIMR in OpenIFS source
sed -i 's/^\(.*ECE_CLIMR = .TRUE.\)/!\1/' sources/oifs-48r1/ifs-source/arpifs/ecearth/module/ecearth.F90
sed -i 's/^\(.*ECE_CLIMR = .TRUE.\)/!\1/' sources/oifs-48r1/ifs-source/surf/module/surfece.F90

This limitation is currently under investigation.

Testing and validation

The TCO1279L137 configuration has been tested and validated on Marenostrum 5 (MN5) using 20–30 nodes with the following setup:

  • Test Case: 20 days around the DANA event (October 2024).

  • Forcing Data: ICMCL inidata and nudging files are prepared and available for this period.

  • Nudging parameters: Vorticity (VO) nudged with a 24-hour relaxation time, applied at vertical levels 70–120 and spectral wavenumbers <= 20.

Weather-focused output

For storyline simulations, you typically need more frequent output and weather-relevant variables. Enable the weather output configuration:

model_config:
  oifs:
    grid: TCO1279L137
    output:
      weather: true

When weather: true is set, the model uses file_def_oifs_weather.xml instead of the default climate-focused output configuration. This provides output optimized for weather analysis and validation.

Computational considerations

TCO1279L137 simulations are computationally expensive:

  • Requires substantial computational resources (HPCs with many cores)

  • Short time step (450s) means more model steps per simulated period

  • Large output files when using weather-focused output

  • Typically limited to simulation periods of days to months rather than multi-decadal climate runs

Plan your computational allocation and storage requirements carefully before starting TCO1279 simulations.