Refactor: split long method.

This commit is contained in:
Kristian Bendiksen committed 2026-03-20 14:30:34 +01:00
1 parent 9678cbf88d
commit 27c0647611
2 files changed
+262 -207

No files matched your search

@@ -121,6 +121,10 @@ public:
const caf::VecIjk0& min,
const cvf::Vec3st& refinement );
// Generic helper for processing keywords with box indices
using RecordProcessorFunc =
std::function<std::expected<Opm::DeckRecord, QString>( const Opm::DeckRecord&, const caf::VecIjk0&, const caf::VecIjk0&, const cvf::Vec3st& )>;
private:
static std::expected<void, QString> updateCornerPointGridInDeckFile( RimEclipseCase* eclipseCase,
const RigSimulationInputSettings& settings,
@@ -191,10 +195,6 @@ private:
bool isWellNameRecord,
const RigSimulationInputSettings& settings );
// Generic helper for processing keywords with box indices
using RecordProcessorFunc =
std::function<std::expected<Opm::DeckRecord, QString>( const Opm::DeckRecord&, const caf::VecIjk0&, const caf::VecIjk0&, const cvf::Vec3st& )>;
static std::expected<void, QString> replaceKeywordWithBoxIndices( const std::string& keywordName,
RimEclipseCase* eclipseCase,
const RigSimulationInputSettings& settings,