Skip to content

Resolve "Implement a class for initial conditions from HDF5 data"

What does this MR do?

Add option to load H5 datasets as initial conditions. Add option initial.type = data.

List of new/updated configuration options:

  • initial.file: File containing the data. Must have extension .h5 (Data type is inferred from extension).
  • initial.dataset: Dataset inside the file
  • initial.interpolation: Interpolator to use for the dataset. Same options available as for scaling fields.

Code changes:

  • Add new class H5InitialCondition.
  • Add two more create functions to InterpolatorFactory, for building interpolators from YAML or INI config nodes.

Is there something that needs to be double checked?

No.

Can this MR be accepted?

  • Implemented feature
  • Updated test-initial-condition unit test
  • Update parameter files
  • Update user docs
  • Pipeline passing
  • Added entry to CHANGELOG.md

Related issues

Closes #133 (closed)

Edited by Lukas Riedel

Merge request reports