mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-26 15:10:22 -05:00
Fix issue with single realization when using resdata (#12737)
* Moves multi reader initialization * Log error message if not able to open file * Make keywordCount pure virtual The base class `RifSummaryReaderInterface` is changed to be abstract and the `keywordCount` is declared as a pure virtual method, therefore the derived classes must implement the method. This will ensure that all readers are responsible for reporting a keyword count. * Ensures addresses are created if required Calls `createAddressesIfRequired` on the summary reader to ensure addresses are created before accessing keyword count. This prevents potential issues when the addresses haven't been initialized yet.
This commit is contained in:
1 parent
06a3419d2b
commit
c854166be6
27 files changed
+161
-28
No files matched your search
@@ -54,7 +54,8 @@ public:
|
||||
static RiaDefines::DateTimePeriod findBestResamplingPeriod( time_t minTimeStep, time_t maxTimeStep );
|
||||
|
||||
private:
|
||||
void clearData();
|
||||
void clearData();
|
||||
size_t keywordCount() const override;
|
||||
|
||||
private:
|
||||
std::vector<time_t> m_timeSteps;
|
||||
|
||||
Reference in new issue
Block a user