Skip to content

Commit

Permalink
Turn inactive NNC into error to make processing easier
Browse files Browse the repository at this point in the history
  • Loading branch information
moyner committed Apr 18, 2024
1 parent b763b99 commit f649161
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/CornerPointGrid/processing.jl
Original file line number Diff line number Diff line change
Expand Up @@ -535,7 +535,7 @@ function grid_from_primitives(primitives; nnc = missing)
push!(cell_faces[c2], faceno)
faceno += 1
else
@warn "NNC connects inactive cells, skipped: $(Tuple(nnc_entry[1:3])) -> $(Tuple(nnc_entry[4:6]))"
error("NNC connects inactive cells, cannot proceed: $(Tuple(nnc_entry[1:3])) -> $(Tuple(nnc_entry[4:6]))")
end
end
end
Expand Down

0 comments on commit f649161

Please sign in to comment.