Skip to content

Commit

Permalink
Fix to transmissibility finite test
Browse files Browse the repository at this point in the history
  • Loading branch information
moyner committed Feb 7, 2024
1 parent a89fb5c commit e38cf9e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1135,8 +1135,10 @@ function reservoir_transmissibility(d::DataDomain; version = :xyz)
end
bad_count = 0
for (i, T_hf_i) in enumerate(T_hf)
bad_count += !isfinite(T_hf_i)
T_hf[i] = 0.0
if !isfinite(T_hf_i)
bad_count += 1
T_hf[i] = 0.0
end
end
if bad_count > 0
tran_tot = length(T_hf)
Expand Down

0 comments on commit e38cf9e

Please sign in to comment.