mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Fixed bug causing function to always return true
p4#: 21149
This commit is contained in:
parent
ae812a2bbf
commit
c7d83893e0
@ -367,7 +367,7 @@ bool RimIdenticalGridCaseGroup::contains(RimCase* reservoir) const
|
|||||||
for (size_t i = 0; i < caseCollection()->reservoirs().size(); i++)
|
for (size_t i = 0; i < caseCollection()->reservoirs().size(); i++)
|
||||||
{
|
{
|
||||||
RimCase* rimReservoir = caseCollection()->reservoirs()[i];
|
RimCase* rimReservoir = caseCollection()->reservoirs()[i];
|
||||||
if (reservoir->caseName == reservoir->caseName)
|
if (reservoir->caseName == rimReservoir->caseName)
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@ -376,6 +376,9 @@ bool RimIdenticalGridCaseGroup::contains(RimCase* reservoir) const
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
///
|
||||||
|
//--------------------------------------------------------------------------------------------------
|
||||||
RigActiveCellInfo* RimIdenticalGridCaseGroup::unionOfActiveCells(RifReaderInterface::PorosityModelResultType porosityType)
|
RigActiveCellInfo* RimIdenticalGridCaseGroup::unionOfActiveCells(RifReaderInterface::PorosityModelResultType porosityType)
|
||||||
{
|
{
|
||||||
if (porosityType == RifReaderInterface::MATRIX_RESULTS)
|
if (porosityType == RifReaderInterface::MATRIX_RESULTS)
|
||||||
|
Loading…
Reference in New Issue
Block a user