From 421bc2eba130cc97a009b4a9c39b6a07ba259e59 Mon Sep 17 00:00:00 2001
From: Markus Holzer <markus.holzer@fau.de>
Date: Mon, 4 Dec 2023 14:16:52 +0100
Subject: [PATCH] Small fix in GPU refinement

---
 src/lbm_generated/gpu/BasicRecursiveTimeStepGPU.impl.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lbm_generated/gpu/BasicRecursiveTimeStepGPU.impl.h b/src/lbm_generated/gpu/BasicRecursiveTimeStepGPU.impl.h
index 5bb43c3c8..6665cf351 100644
--- a/src/lbm_generated/gpu/BasicRecursiveTimeStepGPU.impl.h
+++ b/src/lbm_generated/gpu/BasicRecursiveTimeStepGPU.impl.h
@@ -243,7 +243,7 @@ void BasicRecursiveTimeStepGPU< PdfField_T, SweepCollection_T, BoundaryCollectio
    for(auto it = CommunicationStencil::beginNoCenter(); it != CommunicationStencil::end(); ++it){
       uint_t nSecIdx = blockforest::getBlockNeighborhoodSectionIndex(*it);
       // Propagate on ghost layers shadowing coarse or no blocks
-      if(!block->neighborhoodSectionHasSmallerBlocks(nSecIdx)){
+      if(block->neighborhoodSectionHasLargerBlock(nSecIdx)){
          CellInterval ci;
          pdfField->getGhostRegion(*it, ci, 1);
          sweepCollection_.streamOnlyNoAdvancementCellInterval(block, ci, gpuStream);
-- 
GitLab