You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Actually, a better suggestion is to remove FilteredTimeSteppers all together and instead add the optional post-timestep application of a function poststep! to sol. This way the user can prescribe filters in the form of the solution within any module and then apply them, e.g., through
functionpoststep!(sol, params)
@. sol *= params.filter
end
The text was updated successfully, but these errors were encountered:
After the ClockReplacesState #96 refactor we are now able to construct a module whose
sol
is an array of arrays of different types (see, for example, https://github.com/FourierFlows/GeophysicalFlows.jl/blob/96fbb1b7844da0aa35764769e487125ef4f4de5b/src/barotropicqg.jl#L167). This brings up the necessity to generalize themakefilter
since at its current form it won't work with theBarotropicQG
withU(t)
as implemented in the branch above.Actually, a better suggestion is to remove FilteredTimeSteppers all together and instead add the optional post-timestep application of a function
poststep!
tosol
. This way the user can prescribe filters in the form of the solution within any module and then apply them, e.g., throughThe text was updated successfully, but these errors were encountered: