Skip to content

Commit

Permalink
Fix an issue on grid roxarapi conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
jcrivenaes committed Oct 27, 2020
1 parent 7c6cfc8 commit 71c4322
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/xtgeo/grid3d/_grid_roxapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,9 @@ def _export_grid_cornerpoint_roxapi_v1(
geom = CPG.create(self.dimensions)

logger.info(geom)
scopy = self.copy()
scopy.make_zconsistent()
scopy._xtgformat1()

npill = (self.ncol + 1) * (self.nrow + 1) * 3
nzcrn = (self.ncol + 1) * (self.nrow + 1) * 4 * (self.nlay + 1)
Expand All @@ -358,7 +361,7 @@ def _export_grid_cornerpoint_roxapi_v1(
self.nrow,
self.nlay,
self._coordsv,
self._zcornsv,
scopy._zcornsv,
self._actnumsv,
npill,
npill,
Expand Down Expand Up @@ -421,6 +424,7 @@ def _export_grid_cornerpoint_roxapi_v2(

scopy = self.copy()
scopy.make_zconsistent()
scopy._xtgformat2()

npill = (self.ncol + 1) * (self.nrow + 1) * 3
nzcrn = (self.ncol + 1) * (self.nrow + 1) * (self.nlay + 1) * 4
Expand Down

0 comments on commit 71c4322

Please sign in to comment.