-
Notifications
You must be signed in to change notification settings - Fork 274
Closed
Labels
reactant ∇all day I dream about MLIRall day I dream about MLIR
Description
Wrap up the following code in its own function that depends on the model. This simplifies maintaining the timestepping workaround in OceananigansReactantExt
Oceananigans.jl/src/TimeSteppers/quasi_adams_bashforth_2.jl
Lines 99 to 101 in aa1ad5f
| if model.clock.iteration == 0 | |
| update_state!(model, callbacks) | |
| end |
Something like
maybe_initialize_state!(model)
function maybe_initialize_state!(model)
if model.clock.iteration == 0
update_state!(model)
end
return nothing
endFor all three currently supported timesteppers
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
reactant ∇all day I dream about MLIRall day I dream about MLIR