mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-25 22:50:25 -05:00
#12957 Sector Model Export: require resolved max in RigGridExportAdapter
Move UNDEFINED max resolution to callers so it happens exactly once. RigGridExportAdapter now asserts that max is resolved on construction.
This commit is contained in:
1 parent
3067823e71
commit
49ea27ed62
4 files changed
+35
-43
No files matched your search
@@ -250,7 +250,8 @@ std::expected<caf::PdmObjectHandle*, QString> RimcEclipseCase_exportCornerPointG
|
||||
// Export the full grid (no min/max bounds, no refinement, no visibility override)
|
||||
const auto* mainGrid = eclipseCaseData->mainGrid();
|
||||
cvf::Vec3st fullSize( mainGrid->cellCountI(), mainGrid->cellCountJ(), mainGrid->cellCountK() );
|
||||
RigGridExportAdapter gridAdapter( eclipseCaseData, cvf::Vec3st::ZERO, cvf::Vec3st::UNDEFINED, RigNoRefinement( fullSize ), nullptr );
|
||||
cvf::Vec3st fullMax( mainGrid->cellCountI() - 1, mainGrid->cellCountJ() - 1, mainGrid->cellCountK() - 1 );
|
||||
RigGridExportAdapter gridAdapter( eclipseCaseData, cvf::Vec3st::ZERO, fullMax, RigNoRefinement( fullSize ), nullptr );
|
||||
|
||||
// Use the existing conversion utility to get the arrays in the correct format
|
||||
std::vector<float> coordArray;
|
||||
|
||||
Reference in new issue
Block a user