mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Improve property linking
* Allow linking of property filters across cases with same IJK size * Recalculate when grid is replaced Find dependencies between calculations and order them accordingly
This commit is contained in:
@@ -778,7 +778,7 @@ void RifReaderOpmRft::identifyAnnulusBranches( RifRftSegment& segmentRef, const
|
||||
seglenstForBranch[branchId] = values;
|
||||
}
|
||||
|
||||
std::set<size_t> annulusBranchIds;
|
||||
std::set<int> annulusBranchIds;
|
||||
|
||||
for ( auto branchId : tubingIds )
|
||||
{
|
||||
@@ -801,7 +801,7 @@ void RifReaderOpmRft::identifyAnnulusBranches( RifRftSegment& segmentRef, const
|
||||
const double distanceTubingAnnulus = 0.1;
|
||||
if ( std::fabs( ( std::fabs( diff ) - distanceTubingAnnulus ) ) < epsilon )
|
||||
{
|
||||
size_t annulusBranchId = ( diff > 0 ) ? candidateBranchId : branchId;
|
||||
int annulusBranchId = ( diff > 0 ) ? candidateBranchId : branchId;
|
||||
|
||||
segmentRef.setBranchType( annulusBranchId, RiaDefines::RftBranchType::RFT_ANNULUS );
|
||||
annulusBranchIds.insert( annulusBranchId );
|
||||
@@ -818,9 +818,9 @@ void RifReaderOpmRft::reassignBranchIndices( RifRftSegment& segmentRef )
|
||||
{
|
||||
auto tubingBranchIds = segmentRef.tubingBranchIds();
|
||||
|
||||
size_t oneBasedBranchIndex = 1;
|
||||
int oneBasedBranchIndex = 1;
|
||||
|
||||
std::map<size_t, size_t> newOneBasedBranchIndex;
|
||||
std::map<int, int> newOneBasedBranchIndex;
|
||||
for ( auto branchId : tubingBranchIds )
|
||||
{
|
||||
auto previsousIndex = segmentRef.oneBasedBranchIndexForBranchId( branchId );
|
||||
|
||||
@@ -381,7 +381,7 @@ int RifRftSegment::segmentIndexFromSegmentNumber( int segmentNumber ) const
|
||||
{
|
||||
auto segment = m_topology[i];
|
||||
|
||||
if ( segment.segNo() == segmentNumber ) return i;
|
||||
if ( segment.segNo() == segmentNumber ) return static_cast<int>( i );
|
||||
}
|
||||
|
||||
return -1;
|
||||
|
||||
Reference in New Issue
Block a user