mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Minor adjustments related to well target workflow
* For a case with only static geometry, make sure it is possible to create a contour map * Make sure the grid model is open before accessing data * Make sure the picked polygon points are located above the grid model
This commit is contained in:
@@ -35,6 +35,8 @@
|
||||
#include "RimEclipseView.h"
|
||||
#include "RimRegularLegendConfig.h"
|
||||
|
||||
#include <algorithm>
|
||||
|
||||
CAF_PDM_SOURCE_INIT( RimEclipseContourMapProjection, "RimEclipseContourMapProjection" );
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@@ -365,7 +367,7 @@ std::pair<double, double> RimEclipseContourMapProjection::minmaxValuesAllTimeSte
|
||||
{
|
||||
clearTimeStepRange();
|
||||
|
||||
int timeStepCount = static_cast<int>( eclipseCase()->timeStepStrings().size() );
|
||||
int timeStepCount = std::max( static_cast<int>( eclipseCase()->timeStepStrings().size() ), 1 );
|
||||
for ( int i = 0; i < (int)timeStepCount; ++i )
|
||||
{
|
||||
std::vector<double> aggregatedResults = generateResults( i );
|
||||
|
||||
Reference in New Issue
Block a user