Open glwagner opened 20 hours ago
@simone-silvestri
It is needed for the RK3 timestepper. I can move the deepcopy in the timestepper constructor to avoid the memory allocation when using an AB2
Right, so its unnecessary for AB2 which is currently the default. Good also to note this is an additional downside of the RK3 scheme.
Doesn't this allocate unnecessary memory?
https://github.com/CliMA/Oceananigans.jl/blob/fe4123f92155f5086bce72e366843045606b4bf5/src/Models/HydrostaticFreeSurfaceModels/hydrostatic_free_surface_model.jl#L201