Skip to content

Commit

Permalink
Performance improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
moyner committed Jun 16, 2024
1 parent a6923ce commit f4088a1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/CornerPointGrid/processing_utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ function traverse_column_pair(col_a, col_b, l1, l2)
return determine_cell_overlap_inside_line(a_start, a_stop, b_start, b_stop)
end
cell_pairs = Tuple{Int, Int}[]
cellhint = 2*max(length(ord_a), length(ord_b))
cellhint = 4*max(length(ord_a), length(ord_b))
sizehint!(cell_pairs, cellhint)
sizehint!(overlaps, cellhint)

Expand Down
2 changes: 1 addition & 1 deletion src/CornerPointGrid/utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ end

function handle_zero_effective_porosity!(actnum, g)
if haskey(g, "MINPV")
minpv = g["MINPV"]
minpv = g["MINPV"]::Float64
else
minpv = 1e-6
end
Expand Down

0 comments on commit f4088a1

Please sign in to comment.