Skip to content

Commit

Permalink
fix: Small fix (#3308)
Browse files Browse the repository at this point in the history
* Fix bug in SinglePhasePoromechanicsConformingFractures.cpp
---------
  • Loading branch information
paveltomin authored and rrsettgast committed Sep 17, 2024
1 parent dde1f49 commit 9eac288
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@ addTransmissibilityCouplingPattern( DomainPartition const & domain,
// to the nodes of the adjacent cell
localIndex const rowIndex = presDofNumber[sei[iconn][1-kf]] - rankOffset;

if( rowIndex > 0 && rowIndex < pattern.numRows() )
if( rowIndex >= 0 && rowIndex < pattern.numRows() )
{

// Get fracture, face and region/subregion/element indices (for elements on both sides)
Expand Down Expand Up @@ -655,7 +655,7 @@ assembleFluidMassResidualDerivativeWrtDisplacement( MeshLevel const & mesh,

localIndex const localRow = LvArray::integerConversion< localIndex >( elemDOF[0] - rankOffset );

if( localRow > 0 && localRow < localMatrix.numRows() )
if( localRow >= 0 && localRow < localMatrix.numRows() )
{

localMatrix.addToRowBinarySearchUnsorted< serialAtomic >( localRow,
Expand Down Expand Up @@ -711,7 +711,7 @@ assembleFluidMassResidualDerivativeWrtDisplacement( MeshLevel const & mesh,
{
localIndex const localRow = LvArray::integerConversion< localIndex >( elemDOF[0] - rankOffset );

if( localRow > 0 && localRow < localMatrix.numRows() )
if( localRow >= 0 && localRow < localMatrix.numRows() )
{
localMatrix.addToRowBinarySearchUnsorted< serialAtomic >( localRow,
nodeDOF,
Expand Down

0 comments on commit 9eac288

Please sign in to comment.