Commit 2194187d authored by Martin Bauer's avatar Martin Bauer

Added option to disable local communication to buffered communication scheme

option is intended for benchmarking, for production runs leave the
local communication optimization switched on
parent d73dd965
......@@ -25,7 +25,7 @@ namespace walberla {
namespace blockforest {
enum LocalCommunicationMode { START = 0, WAIT = 1, BUFFER = 2 };
enum LocalCommunicationMode { START = 0, WAIT = 1, BUFFER = 2, NO_OPTIMIZATION = 3 };
} // namespace blockforest
......
......@@ -306,7 +306,7 @@ void UniformBufferedScheme<Stencil>::startCommunication()
if( !selectable::isSetSelected( block->getNeighborState( neighborIdx, uint_t(0) ), requiredBlockSelectors_, incompatibleBlockSelectors_ ) )
continue;
if( block->neighborExistsLocally( neighborIdx, uint_t(0) ) )
if( block->neighborExistsLocally( neighborIdx, uint_t(0) ) && localMode_ != NO_OPTIMIZATION )
{
auto neighbor = dynamic_cast< Block * >( forest->getBlock(nBlockId) );
WALBERLA_ASSERT_EQUAL( neighbor->getProcess(), block->getProcess() );
......
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