mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Make sure we load two results files after wia script has completed. (#8088)
This commit is contained in:
parent
6a6fc52ef9
commit
69c829dc32
@ -94,12 +94,20 @@ void RicRunWellIntegrityAnalysisFeature::onActionTriggered( bool isChecked )
|
||||
runProgress.setProgressDescription( "Loading modeling results." );
|
||||
|
||||
RiaApplication* app = RiaApplication::instance();
|
||||
if ( !app->openOdbCaseFromFile( modelSettings->outputHeatOdbFilename() ) )
|
||||
{
|
||||
QMessageBox::critical( nullptr,
|
||||
wiaTitle,
|
||||
"Failed to load modeling results from file \"" + modelSettings->outputHeatOdbFilename() +
|
||||
"\". Check log window for additional information." );
|
||||
}
|
||||
|
||||
if ( !app->openOdbCaseFromFile( modelSettings->outputOdbFilename() ) )
|
||||
{
|
||||
QMessageBox::critical( nullptr,
|
||||
wiaTitle,
|
||||
"Failed to load modeling results. Check log window for additional information." );
|
||||
return;
|
||||
"Failed to load modeling results from file \"" + modelSettings->outputOdbFilename() +
|
||||
"\". Check log window for additional information." );
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -325,6 +325,14 @@ QString RimWellIASettings::outputOdbFilename() const
|
||||
return m_baseDir() + "/" + name() + ".odb";
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
QString RimWellIASettings::outputHeatOdbFilename() const
|
||||
{
|
||||
return m_baseDir() + "/" + name() + "_heat.odb";
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
@ -63,6 +63,7 @@ public:
|
||||
void setOutputBaseDirectory( QString baseDir );
|
||||
QString outputBaseDirectory() const;
|
||||
QString outputOdbFilename() const;
|
||||
QString outputHeatOdbFilename() const;
|
||||
|
||||
bool showBox() const;
|
||||
void setShowBox( bool show );
|
||||
|
Loading…
Reference in New Issue
Block a user