Open matthewturk opened 3 years ago
This would be awesome! Thanks, Matt.
This looks like a doable first step towards simplifying grid based frontends indeed, I'll add it to the 4.1.0 milestone.
actually this sounds like a refactor with no repercussions on the user side (which is good), so now I think it doesn't need to be targeted at a specific feature release.
Based on the format of the chombo io.py, it should be straightforward to make all the grid frontends utilize a standard fluid selection routine if a
_read_data
function is implemented by the frontend. For instance, this is the Chombo frontend's_read_fluid_selection
:Note that if we get rid of the debug call, etc, it actually is quite terse. It calls out to a
_read_data
function. This could be the basis for refactoring the grid frontends into a smaller, less-complex footprint.