diff --git a/apps/benchmarks/GranularGas/MESA_PD_KernelLoadBalancing.cpp b/apps/benchmarks/GranularGas/MESA_PD_KernelLoadBalancing.cpp index ae6867e77c24f7cd80d5ff3a389fe3e37ad71b12..e542bac6088d80745ad0f39573cf4fb7bb4f4605 100644 --- a/apps/benchmarks/GranularGas/MESA_PD_KernelLoadBalancing.cpp +++ b/apps/benchmarks/GranularGas/MESA_PD_KernelLoadBalancing.cpp @@ -258,6 +258,14 @@ int main( int argc, char ** argv ) WcTimingPool tpImbalanced; WcTimingPool tpBalanced; + WALBERLA_MPI_BARRIER(); + tpImbalanced["AssocToBlock"].start(); + for (int64_t i=0; i < params.simulationSteps; ++i) + { + ps->forEachParticle(true, kernel::SelectLocal(), accessor, assoc, accessor); + } + tpImbalanced["AssocToBlock"].end(); + WALBERLA_MPI_BARRIER(); tpImbalanced["GenerateLinkedCells"].start(); for (int64_t i=0; i < params.simulationSteps; ++i) @@ -358,6 +366,14 @@ int main( int argc, char ** argv ) sortParticleStorage(*ps, params.sorting, lc->domain_, uint_c(lc->numCellsPerDim_[0])); } + WALBERLA_MPI_BARRIER(); + tpBalanced["AssocToBlock"].start(); + for (int64_t i=0; i < params.simulationSteps; ++i) + { + ps->forEachParticle(true, kernel::SelectLocal(), accessor, assoc, accessor); + } + tpBalanced["AssocToBlock"].end(); + WALBERLA_MPI_BARRIER(); tpBalanced["GenerateLinkedCells"].start(); for (int64_t i=0; i < params.simulationSteps; ++i)