Skip to content
Snippets Groups Projects
Commit 83b7fb57 authored by Brian Groenke's avatar Brian Groenke
Browse files

Fix bug in strat initializer logic

parent f575a174
No related branches found
No related tags found
No related merge requests found
......@@ -259,7 +259,8 @@ function _initializers!(strat::Stratigraphy, state, inits)
if i < length(strat)
isvalidᵢ₊₁ = !isa(init, VarInitializer) || hasproperty(stateᵢ₊₁, varname(init))
if isvalidᵢ && isvalidᵢ₊₁
# invoke initial condition if valid for either layer
if isvalidᵢ || isvalidᵢ₊₁
CryoGrid.initialcondition!(init, layerᵢ, layerᵢ₊₁, stateᵢ, stateᵢ₊₁)
end
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment