Commit 10065112 authored by Markus Holzer's avatar Markus Holzer
Browse files

Merge branch 'partially-revert-mr-487' into 'master'

Update !487 and avoid implicit OpenMP parallelization in mesh::BoundarySetup

See merge request walberla/walberla!493
parents e825e0a6 c6c9f4c1
......@@ -16,6 +16,7 @@
//! \file BoundarySetup.h
//! \ingroup mesh
//! \author Christian Godenschwager <christian.godenschwager@fau.de>
//! \author Christoph Schwarzmeier <christoph.schwarzmeier@fau.de>
//
//======================================================================================================================
......@@ -110,7 +111,7 @@ void BoundarySetup::setDomainCells( const BlockDataID boundaryHandlingId, const
std::vector<Cell> domainCells;
WALBERLA_FOR_ALL_CELLS_INCLUDING_GHOST_LAYER_XYZ(voxelizationField, {
WALBERLA_FOR_ALL_CELLS_INCLUDING_GHOST_LAYER_XYZ_OMP(voxelizationField, omp critical, {
if (voxelizationField->get(x, y, z) == domainValue) { domainCells.emplace_back(x, y, z); }
if (domainCells.size() > cellVectorChunkSize_)
......
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