Skip to content

Commit

Permalink
Update FiniteDifference
Browse files Browse the repository at this point in the history
  • Loading branch information
gerlero committed Jun 3, 2024
1 parent 414b0a2 commit 49bbf09
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/finite.jl
Original file line number Diff line number Diff line change
Expand Up @@ -271,8 +271,7 @@ function solve(
end

K .= conductivity.(prob.eq, u)
Kf .= 2K[begin:(end - 1)] .* K[(begin + 1):end] ./
(K[begin:(end - 1)] + K[(begin + 1):end])
Kf .= (K[begin:(end - 1)] .+ K[(begin + 1):end]) / 2

C .= capacity.(prob.eq, u)

Expand Down

0 comments on commit 49bbf09

Please sign in to comment.