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

Use more conservative initial step size guess in presolver

parent 92ab7e79
No related branches found
No related tags found
No related merge requests found
......@@ -189,7 +189,7 @@ function CryoGrid.initialcondition!(soil::Soil{<:HomogeneousCharacteristicFracti
while H[end] < Hmax
# find the optimal step size
ϵ = Inf
ΔH = heat.prop.L/2 # initially set to large value
ΔH = heat.prop.L*θtot/10 # initially set to large value
while abs(ϵ) > sfcc.solver.errtol
ϵ = step(ΔH, H[end], θ[end], ∂θ∂H[end], T[end])
# iteratively halve the step size until error tolerance is satisfied
......
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