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:
jonjenssen
2023-01-24 18:30:30 +01:00
committed by GitHub
parent a770f89082
commit b28832eccd
8 changed files with 105 additions and 23 deletions

View File

@@ -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;
};