ecmwf-ifs / loki

Freely programmable source-to-source translation for Fortran

Home Page:https://sites.ecmwf.int/docs/loki/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Generic approach for transformation specific settings in SchedulerConfig

MichaelSt98 opened this issue · comments

Generic approach for transformation specific settings to avoid adding new keys flat into the scheduler config

by introducing a transformation_configs key or similar as proposed by @reuterbal.

Consequently, transformation-specific sections (analogue to the routine-specific configs) could be declared, e.g.

[transformation_options]

[transformation_options.ParametriseTransformation]
dic2p = { NLEV = 137 }

[transformation_options.SccCufTransformation]
derived_types = [ 'TECLDP' ]

This could then be picked out in the scheduler's process routine and handed down to the transformation invocation:

trafo_config = self.config.get(trafo_name, {})
...
transformation.apply(..., **trafo_config)

Draft PR #191 should address this, so comments welcome.