mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#7929 Python : Avoid creation of new view when opening case
This commit is contained in:
@@ -935,7 +935,7 @@ void RimEnsembleFractureStatistics::sampleAllGrids( const std::vector<cvf::cref<
|
||||
const std::vector<double>& samplesY,
|
||||
std::vector<std::vector<double>>& samples )
|
||||
{
|
||||
const int ny = samplesY.size();
|
||||
const int ny = static_cast<int>( samplesY.size() );
|
||||
#pragma omp parallel for
|
||||
for ( int y = 0; y < ny; y++ )
|
||||
{
|
||||
|
||||
@@ -905,10 +905,8 @@ void RimEclipseCase::setFilesContainingFaults( const std::vector<QString>& pathS
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
bool RimEclipseCase::ensureReservoirCaseIsOpen()
|
||||
{
|
||||
if ( m_rigEclipseCase.notNull() )
|
||||
{
|
||||
return true;
|
||||
}
|
||||
// Call openReserviorCase, as this is a cheap method to call multiple times
|
||||
// Add extra testing here if performance issues are seen
|
||||
|
||||
return openReserviorCase();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user