Skip to content

Commit

Permalink
Fix capacity handling for FiniteReservoirProblem
Browse files Browse the repository at this point in the history
  • Loading branch information
gerlero committed Sep 3, 2024
1 parent 444f433 commit efda74d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/finite.jl
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ function solve(prob::FiniteReservoirProblem{<:DiffusionEquation{1}},
else
t = min((prob._rstop / presol.oi)^2, prob._tstop,
(prob.capacity / sorptivity(presol))^2)
u[begin] -= sorptivity(presol) * t
u[begin] = prob.capacity - sorptivity(presol) * t
u[(begin + 1):end] .= presol.(r, t)
u[begin + 1] = prob.b
end
Expand Down

0 comments on commit efda74d

Please sign in to comment.