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:
jonjenssen 2021-09-28 12:39:54 +02:00 committed by GitHub
parent de1d02e7bc
commit 66852c4dad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 18 additions and 1 deletions

View File

@ -891,6 +891,7 @@ bool RiaApplication::openOdbCaseFromFile( const QString& fileName, bool applyTim
m_project->updateConnectedEditors();
Riu3DMainWindowTools::setExpanded( riv );
Riu3DMainWindowTools::selectAsCurrentItem( riv );
return true;
}

View File

@ -93,7 +93,14 @@ void RicRunWellIntegrityAnalysisFeature::onActionTriggered( bool isChecked )
runProgress.incrementProgress();
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;
}
}
//--------------------------------------------------------------------------------------------------

View File

@ -317,6 +317,14 @@ QString RimWellIASettings::outputBaseDirectory() const
return m_baseDir();
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
QString RimWellIASettings::outputOdbFilename() const
{
return m_baseDir() + "/" + name() + ".odb";
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------

View File

@ -62,6 +62,7 @@ public:
void setOutputBaseDirectory( QString baseDir );
QString outputBaseDirectory() const;
QString outputOdbFilename() const;
bool showBox() const;
void setShowBox( bool show );