CliMA / ClimateMachine.jl

Climate Machine: an Earth System Model that automatically learns from data
https://clima.github.io/ClimateMachine.jl/latest/
Other
453 stars 78 forks source link

Identify ODE solver methods #708

Open kpamnany opened 4 years ago

kpamnany commented 4 years ago

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.

simonbyrne commented 4 years ago

Alternatively we could add a name parameter to the type as well. Not sure which is easier.