Given that we did a solver = LSRK54CarpenterKennedy(...) or the like, it would be helpful to be able to @info solver and get CarpenterKennedy rather than LowStorageRungeKutta2N. A simple way to do this would be to simply add a name field to the various AbstractODESolver sub-types and have each constructor use their names during creation. Then we can define Base.show() for the type, like so and output the name, time, time step, etc.
Given that we did a
solver = LSRK54CarpenterKennedy(...)
or the like, it would be helpful to be able to@info solver
and getCarpenterKennedy
rather thanLowStorageRungeKutta2N
. A simple way to do this would be to simply add aname
field to the variousAbstractODESolver
sub-types and have each constructor use their names during creation. Then we can defineBase.show()
for the type, like so and output the name, time, time step, etc.