Skip to content

Commit

Permalink
Merge pull request #41 from daavid00/dataReport
Browse files Browse the repository at this point in the history
In a cp grid (spe11a) dont remove the lower right corner (spatial data)
  • Loading branch information
daavid00 authored Feb 20, 2024
2 parents 0931e3e + e6a457d commit ee1c05b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/pyopmspe11/visualization/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -747,9 +747,11 @@ def handle_inactive_mapping(dig, dil):
"""Set to inf the inactive grid centers in the reporting grid"""
var_array = np.empty(dig["noxz"]) * np.nan
var_array[dig["actind"]] = 0.0
# For a corner-point grid do not remove the lower right corner
safe = np.where(dil["refxcent"] > 2.72)[0]
for i in range(dig["nocellsr"]):
inds = i == dil["cell_ind"]
if np.isnan(np.sum(var_array[inds])):
if np.isnan(np.sum(var_array[inds])) and i not in safe:
dil["refxgrid"][i] = np.inf
dil["refzgrid"][i] = np.inf
ind, dil["cell_ind"] = 0, np.zeros(dig["nocellst"], dtype=int)
Expand Down

0 comments on commit ee1c05b

Please sign in to comment.