mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
RimCase reintroduced as baseclass for all cases
Refactored to handle cases generically in a lot of places. Mostly complete regarding all these issues, but not tested yet: Assigning caseId Update relative path to the case data RimProject::createDisplayModelAndRedrawAllViews RimProject::computeUtmAreaOfInterest Load case data on project open save snapshots for all views RegressionTest viewer size Finding case based on caseId Giving case information to octave
This commit is contained in:
@@ -392,7 +392,11 @@ RimGeoMechCase* RimGeoMechView::geoMechCase()
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimGeoMechView::clampCurrentTimestep()
|
||||
{
|
||||
size_t maxFrameCount = m_geomechCase->geoMechData()->frameCount(0, cellResult()->resultAddress());
|
||||
size_t maxFrameCount = 0;
|
||||
|
||||
if (m_geomechCase){
|
||||
maxFrameCount = m_geomechCase->geoMechData()->frameCount(0, cellResult()->resultAddress());
|
||||
}
|
||||
|
||||
if (m_currentTimeStep >= maxFrameCount ) m_currentTimeStep = (int)(maxFrameCount -1);
|
||||
if (m_currentTimeStep < 0 ) m_currentTimeStep = 0;
|
||||
@@ -455,3 +459,4 @@ void RivElmVisibilityCalculator::computeAllVisible(cvf::UByteArray* elmVisibilit
|
||||
elmVisibilities->resize(femPart->elementCount());
|
||||
elmVisibilities->setAll(true);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user