mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-25 22:50:25 -05:00
#12957 Sector Model Export: unified refinement abstraction via effectiveRefinement()
Add effectiveRefinement() to RicRefinementSettings, RicExportSectorModelUi, and RigSimulationInputSettings, always returning RigNonUniformRefinement regardless of whether uniform, non-uniform, or no refinement is active. Merge the dual RigGridExportAdapter constructors into a single one taking RigNonUniformRefinement, and unify transformIjkToSectorCoordinates to a single overload. Eliminate all hasNonUniformRefinement() branching patterns in RigSimulationInputTool.cpp in favour of effectiveRefinement().
This commit is contained in:
1 parent
e8a1431c36
commit
5d6aba0f70
19 files changed
+367
-452
No files matched your search
@@ -30,6 +30,7 @@
|
||||
#include "RigEclipseResultAddress.h"
|
||||
#include "RigGridExportAdapter.h"
|
||||
#include "RigMainGrid.h"
|
||||
#include "RigNonUniformRefinement.h"
|
||||
#include "RigResdataGridConverter.h"
|
||||
#include "RigResultAccessor.h"
|
||||
#include "RigResultAccessorFactory.h"
|
||||
@@ -247,7 +248,9 @@ std::expected<caf::PdmObjectHandle*, QString> RimcEclipseCase_exportCornerPointG
|
||||
|
||||
// Use RigGridExportAdapter to handle full grid export
|
||||
// Export the full grid (no min/max bounds, no refinement, no visibility override)
|
||||
RigGridExportAdapter gridAdapter( eclipseCaseData, cvf::Vec3st::ZERO, cvf::Vec3st::UNDEFINED, cvf::Vec3st( 1, 1, 1 ), nullptr );
|
||||
const auto* mainGrid = eclipseCaseData->mainGrid();
|
||||
cvf::Vec3st fullSize( mainGrid->cellCountI(), mainGrid->cellCountJ(), mainGrid->cellCountK() );
|
||||
RigGridExportAdapter gridAdapter( eclipseCaseData, cvf::Vec3st::ZERO, cvf::Vec3st::UNDEFINED, RigNonUniformRefinement( 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