mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-10 23:46:00 -06:00
WellIA: Load results after external computations script has completed (#8062)
* Load result after modeling has completed. * Select new geomech view in project tree when importing a new geomech case
This commit is contained in:
parent
de1d02e7bc
commit
66852c4dad
@ -891,6 +891,7 @@ bool RiaApplication::openOdbCaseFromFile( const QString& fileName, bool applyTim
|
|||||||
|
|
||||||
m_project->updateConnectedEditors();
|
m_project->updateConnectedEditors();
|
||||||
Riu3DMainWindowTools::setExpanded( riv );
|
Riu3DMainWindowTools::setExpanded( riv );
|
||||||
|
Riu3DMainWindowTools::selectAsCurrentItem( riv );
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
@ -93,7 +93,14 @@ void RicRunWellIntegrityAnalysisFeature::onActionTriggered( bool isChecked )
|
|||||||
runProgress.incrementProgress();
|
runProgress.incrementProgress();
|
||||||
runProgress.setProgressDescription( "Loading modeling results." );
|
runProgress.setProgressDescription( "Loading modeling results." );
|
||||||
|
|
||||||
// TODO - load results from Abaqus modeling here.
|
RiaApplication* app = RiaApplication::instance();
|
||||||
|
if ( !app->openOdbCaseFromFile( modelSettings->outputOdbFilename() ) )
|
||||||
|
{
|
||||||
|
QMessageBox::critical( nullptr,
|
||||||
|
wiaTitle,
|
||||||
|
"Failed to load modeling results. Check log window for additional information." );
|
||||||
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
@ -317,6 +317,14 @@ QString RimWellIASettings::outputBaseDirectory() const
|
|||||||
return m_baseDir();
|
return m_baseDir();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
///
|
||||||
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
QString RimWellIASettings::outputOdbFilename() const
|
||||||
|
{
|
||||||
|
return m_baseDir() + "/" + name() + ".odb";
|
||||||
|
}
|
||||||
|
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
///
|
///
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
@ -62,6 +62,7 @@ public:
|
|||||||
|
|
||||||
void setOutputBaseDirectory( QString baseDir );
|
void setOutputBaseDirectory( QString baseDir );
|
||||||
QString outputBaseDirectory() const;
|
QString outputBaseDirectory() const;
|
||||||
|
QString outputOdbFilename() const;
|
||||||
|
|
||||||
bool showBox() const;
|
bool showBox() const;
|
||||||
void setShowBox( bool show );
|
void setShowBox( bool show );
|
||||||
|
Loading…
Reference in New Issue
Block a user