#7929 Python : Avoid creation of new view when opening case

This commit is contained in:
Magne Sjaastad
2021-09-01 08:25:22 +02:00
committed by GitHub
parent 638f926429
commit be29b278f2
10 changed files with 56 additions and 30 deletions

View File

@@ -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++ )
{

View File

@@ -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();
}