mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Support loading only last geomech frame (#9727)
Support option for loading only the last frame for each geomech timestep. Turn it default on for old projects.
This commit is contained in:
@@ -60,6 +60,12 @@ public:
|
||||
TimeStepFilterTypeEnum filterType,
|
||||
int interval );
|
||||
|
||||
void setReadOnlyLastFrame( bool onlyLast );
|
||||
bool readOnlyLastFrame() const;
|
||||
|
||||
protected:
|
||||
void initAfterRead() override;
|
||||
|
||||
private:
|
||||
static QDateTime incrementDateTime( const QDateTime& dateTime, TimeStepFilterTypeEnum filterType, int interval );
|
||||
|
||||
@@ -89,4 +95,5 @@ private:
|
||||
caf::PdmField<bool> m_applyReloadOfCase;
|
||||
caf::PdmField<QString> m_dateFormat;
|
||||
caf::PdmField<std::vector<QString>> m_timeStepNamesFromFile;
|
||||
caf::PdmField<bool> m_readOnlyLastFrame;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user