Skip to content

Commit

Permalink
Merge pull request #591 from richb2k/pieces
Browse files Browse the repository at this point in the history
MeshUtils.F90: set the value of MaxIndex based on the maximum value in the MeshPiece…
  • Loading branch information
raback authored Oct 7, 2024
2 parents 2aaceb9 + 7892f85 commit e989948
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fem/src/MeshUtils.F90
Original file line number Diff line number Diff line change
Expand Up @@ -25552,6 +25552,7 @@ SUBROUTINE CalculateMeshPieces( Mesh, ElementMode, PieceIndex)
CALL Info('CalculateMeshPieces','Mesh coloring loops: '//I2S(Loop),Level=6)

! Compute the true number of different pieces
MaxIndex = MAXVAL( MeshPiece )
IF( MaxIndex == 1 ) THEN
NoPieces = 1
IF(PRESENT(PieceIndex)) PieceIndex = 1
Expand Down

0 comments on commit e989948

Please sign in to comment.