Skip to content

ParmParse addfile for TOML/YAML/... and Python Dicts #470

@ax3l

Description

@ax3l

Follow-up to #429

It would be useful to have helpers to import from Python dictionary (and YAML/TOML/JSON/XML/... files) to amrex::ParmParse (similar to the existing .addfile method that can read other AMReX ParmParse-formatted files).

One a Python dictionary "reader" is added, the YAML/TOML/JSON/XML logic becomes as easy as this: https://github.com/BLAST-ImpactX/impactx/blob/54a72e6c4fffbe5d701caaa0ca2a3e4cf494d3c6/src/python/impactx/extensions/KnownElementsList.py#L32-L46

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions