mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
GeoMech results loaded before animation setup
Now Geomech projects seems to open fine.
This commit is contained in:
@@ -110,10 +110,20 @@ void RimGeoMechView::loadDataAndUpdate()
|
||||
|
||||
if (m_geomechCase)
|
||||
{
|
||||
m_geomechCase->openGeoMechCase();
|
||||
if (!m_geomechCase->openGeoMechCase())
|
||||
{
|
||||
QMessageBox::warning(RiuMainWindow::instance(),
|
||||
"Error when opening project file",
|
||||
"Could not open the Odb file: \n"+ m_geomechCase->caseFileName());
|
||||
m_geomechCase = NULL;
|
||||
return;
|
||||
}
|
||||
m_geoMechFullModel->clearAndSetReservoir(m_geomechCase->geoMechData(), this);
|
||||
}
|
||||
|
||||
CVF_ASSERT(this->cellResult() != NULL);
|
||||
m_geomechCase->geoMechData()->assertResultsLoaded(0, this->cellResult()->resultAddress());
|
||||
|
||||
updateViewerWidget();
|
||||
|
||||
createDisplayModelAndRedraw();
|
||||
|
||||
Reference in New Issue
Block a user