mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-12 16:32:12 -05:00
#1507 When using addNeighbourTransmissibility for a cell combination where a trans value already exists, the new value is added to the old instead of replacing it.
This commit is contained in:
1 parent
406bf96f3f
commit
f82511264b
1 file changed
+2
-2
@@ -33,9 +33,9 @@ void RigTransmissibilityCondenser::addNeighborTransmissibility(CellAddress cell1
|
|||||||
m_condensedTransmissibilities.clear();
|
m_condensedTransmissibilities.clear();
|
||||||
m_externalCellAddrSet.clear();
|
m_externalCellAddrSet.clear();
|
||||||
if ( cell1 < cell2 )
|
if ( cell1 < cell2 )
|
||||||
m_neighborTransmissibilities[cell1][cell2] = transmissibility;
|
m_neighborTransmissibilities[cell1][cell2] += transmissibility;
|
||||||
else
|
else
|
||||||
m_neighborTransmissibilities[cell2][cell1] = transmissibility;
|
m_neighborTransmissibilities[cell2][cell1] += transmissibility;
|
||||||
}
|
}
|
||||||
|
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
|||||||
Reference in new issue
Block a user