Commit bfb3b85e authored by Christoph Rettinger's avatar Christoph Rettinger
Browse files

Added check to AMR in coupling for improved performance

parent a45d2c16
......@@ -869,9 +869,18 @@ int main( int argc, char **argv )
{
auto & forest = blocks->getBlockForest();
pe::createWithNeighborhood(forest, bodyStorageID, *peInfoCollection);
pe::clearSynchronization( blockforest, bodyStorageID);
uint_t stampBefore = blocks->getBlockForest().getModificationStamp();
blocks->refresh();
uint_t stampAfter = blocks->getBlockForest().getModificationStamp();
if(stampBefore == stampAfter)
{
// nothing has changed
continue;
}
pe::clearSynchronization( blockforest, bodyStorageID);
for( uint_t syncStep = 0; syncStep < uint_c(diameter / real_c(minBlockSizeInCells)) + 1; ++syncStep)
syncCall();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment