mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#7438 Project File: Simulation name is hard coded in plots
This commit is contained in:
parent
5d701dd12a
commit
2e5953216f
@ -645,6 +645,7 @@ bool RiaApplication::loadProject( const QString& projectFileName,
|
|||||||
auto sumMainCollection = oilField->summaryCaseMainCollection();
|
auto sumMainCollection = oilField->summaryCaseMainCollection();
|
||||||
if ( !sumMainCollection ) continue;
|
if ( !sumMainCollection ) continue;
|
||||||
|
|
||||||
|
sumMainCollection->updateAutoShortName();
|
||||||
for ( auto sumCaseGroup : sumMainCollection->summaryCaseCollections() )
|
for ( auto sumCaseGroup : sumMainCollection->summaryCaseCollections() )
|
||||||
{
|
{
|
||||||
sumCaseGroup->loadDataAndUpdate();
|
sumCaseGroup->loadDataAndUpdate();
|
||||||
|
@ -723,3 +723,19 @@ void RimSummaryCaseMainCollection::updateFilePathsFromProjectPath( const QString
|
|||||||
summaryCase->updateFilePathsFromProjectPath( newProjectPath, oldProjectPath );
|
summaryCase->updateFilePathsFromProjectPath( newProjectPath, oldProjectPath );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
///
|
||||||
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
void RimSummaryCaseMainCollection::updateAutoShortName()
|
||||||
|
{
|
||||||
|
// This update is required if the file path for the summary case is updated. To be able to produce plots
|
||||||
|
// automatically, the short name must be generated on load
|
||||||
|
//
|
||||||
|
// https://github.com/OPM/ResInsight/issues/7438
|
||||||
|
|
||||||
|
for ( auto s : allSummaryCases() )
|
||||||
|
{
|
||||||
|
s->updateAutoShortName();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@ -72,6 +72,8 @@ public:
|
|||||||
|
|
||||||
void updateFilePathsFromProjectPath( const QString& newProjectPath, const QString& oldProjectPath );
|
void updateFilePathsFromProjectPath( const QString& newProjectPath, const QString& oldProjectPath );
|
||||||
|
|
||||||
|
void updateAutoShortName();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
static void loadSummaryCaseData( std::vector<RimSummaryCase*> summaryCases );
|
static void loadSummaryCaseData( std::vector<RimSummaryCase*> summaryCases );
|
||||||
static void loadFileSummaryCaseData( std::vector<RimFileSummaryCase*> fileSummaryCases );
|
static void loadFileSummaryCaseData( std::vector<RimFileSummaryCase*> fileSummaryCases );
|
||||||
|
Loading…
Reference in New Issue
Block a user