Skip to content

Commit 11f4015

Browse files
committed
wip: report completion for SG.
1 parent 4a03e4b commit 11f4015

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/coreComponents/physicsSolvers/surfaceGeneration/SurfaceGenerator.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -474,7 +474,8 @@ real64 SurfaceGenerator::solverStep( real64 const & time_n,
474474
{
475475
SpatialPartition & partition = dynamicCast< SpatialPartition & >( domain.getReference< PartitionBase >( dataRepository::keys::partitionManager ) );
476476
int const tileColor=partition.getColor();
477-
int const numTileColors=partition.numColor();
477+
int const numTileColorsLocal=partition.numColor();
478+
int const numTileColors = MpiWrapper::allReduce( numTileColorsLocal, MpiWrapper::Reduction::Max );
478479

479480
rval = separationDriver( domain,
480481
meshLevel,
@@ -940,7 +941,8 @@ int SurfaceGenerator::separationDriver( DomainPartition & domain,
940941
}
941942

942943
// Log statistics about the mesh splitting operation
943-
if( rval > 0 )
944+
int const globalRval = MpiWrapper::allReduce( rval, MpiWrapper::Reduction::Max );
945+
if( globalRval > 0 )
944946
{
945947
// Get the fracture subregion to count new fracture elements
946948
SurfaceElementRegion const & fractureRegion = elementManager.getRegion< SurfaceElementRegion >( this->m_fractureRegionName );

0 commit comments

Comments
 (0)