Dotdict look up?
The following fails with KeyError "dim":
[Problem]
Name = {__STATIC.COMPILE_DEFINITIONS.DISCRETIZATION}_{__STATIC.dim}_{__STATIC.grid} | unique
# static variants section
__STATIC.dim = 1, 2 | expand
__STATIC.grid = yasp, ug | expand gt
[__STATIC.COMPILE_DEFINITIONS]
GRIDTYPE = Dune::YaspGrid<{__STATIC.dim}>, Dune::UGGrid<{__STATIC.dim}> | expand gt
while this one passes:
[Problem]
Name = {__STATIC.COMPILE_DEFINITIONS.DISCRETIZATION}_{__STATIC.dim}_{__STATIC.grid} | unique
# static variants section
[__STATIC]
dim = 1, 2 | expand
grid = yasp, ug | expand gt
[__STATIC.COMPILE_DEFINITIONS]
GRIDTYPE = Dune::YaspGrid<{__STATIC.dim}>, Dune::UGGrid<{__STATIC.dim}> | expand gt