Currently the solve_forward, solve_adjoint, and indicate_errors methods return dictionaries of dictionaries of lists of lists of Functions. It would be good to introduce classes which hold these data, and allow extraction by label ("forward", "adjoint", etc.), mesh sequence index, or export, as well as the highest level field name.
We could also move functions for writing to VTU or plotting with matplotlib into these classes, to reduce much of the plotting code in the demos.
Currently the
solve_forward
,solve_adjoint
, andindicate_errors
methods return dictionaries of dictionaries of lists of lists ofFunction
s. It would be good to introduce classes which hold these data, and allow extraction by label ("forward", "adjoint", etc.), mesh sequence index, or export, as well as the highest level field name.We could also move functions for writing to VTU or plotting with matplotlib into these classes, to reduce much of the plotting code in the demos.