From a16005b80fd01129e660f1f82d445a26f1ec30d7 Mon Sep 17 00:00:00 2001
From: HenrikAsmuth <henrik.asmuth@geo.uu.se>
Date: Mon, 14 Nov 2022 10:59:42 +0100
Subject: [PATCH] switch to rez in whole xy-plane in BoundaryLayer

---
 apps/gpu/LBM/BoundaryLayer/BoundaryLayer.cpp               | 2 +-
 src/gpu/VirtualFluids_GPU/Communication/ExchangeData27.cpp | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/apps/gpu/LBM/BoundaryLayer/BoundaryLayer.cpp b/apps/gpu/LBM/BoundaryLayer/BoundaryLayer.cpp
index 9645f3ec1..c82bc94f0 100644
--- a/apps/gpu/LBM/BoundaryLayer/BoundaryLayer.cpp
+++ b/apps/gpu/LBM/BoundaryLayer/BoundaryLayer.cpp
@@ -227,7 +227,7 @@ void multipleLevel(const std::string& configPath)
     if(true)// Add refinement
     {
         gridBuilder->setNumberOfLayers(12, 8);
-        gridBuilder->addGrid( new Cuboid( 0.1*L_x, 0.2*L_y, 0.2*L_z, 0.8*L_x,  0.8*L_y,  0.3*L_z) , 1 );
+        gridBuilder->addGrid( new Cuboid( xGridMin,  0.0,  0.0, xGridMax,  L_y,  L_z*0.2) , 1 );
         para->setMaxLevel(2);
         scalingFactory.setScalingFactory(GridScalingFactory::GridScaling::ScaleCompressible);
     }
diff --git a/src/gpu/VirtualFluids_GPU/Communication/ExchangeData27.cpp b/src/gpu/VirtualFluids_GPU/Communication/ExchangeData27.cpp
index 792282230..b04d89504 100644
--- a/src/gpu/VirtualFluids_GPU/Communication/ExchangeData27.cpp
+++ b/src/gpu/VirtualFluids_GPU/Communication/ExchangeData27.cpp
@@ -56,7 +56,7 @@ void startBlockingMpiSend(unsigned int numberOfSendProcessNeighbors, vf::gpu::Co
                           std::vector<ProcessNeighbor27> *sendProcessNeighborHost)
 {
     for (unsigned int i = 0; i < numberOfSendProcessNeighbors; i++) {
-        std::cout << "Process " << comm.getPID() << " dir " << i << " n send " << (*sendProcessNeighborHost)[i].numberOfNodes << std::endl;
+        // std::cout << "Process " << comm.getPID() << " dir " << i << " n send " << (*sendProcessNeighborHost)[i].numberOfNodes << " n f's " << (*sendProcessNeighborHost)[i].numberOfFs << std::endl;
         // if((*sendProcessNeighborHost)[i].numberOfNodes>0){
             comm.sendDataGPU((*sendProcessNeighborHost)[i].f[0], 
                             (*sendProcessNeighborHost)[i].numberOfFs,
@@ -69,7 +69,7 @@ void startNonBlockingMpiReceive(unsigned int numberOfSendProcessNeighbors, vf::g
                                 std::vector<ProcessNeighbor27> *recvProcessNeighborHost)
 {
     for (unsigned int i = 0; i < numberOfSendProcessNeighbors; i++) {
-        std::cout << "Process " << comm.getPID() << " dir " << i << " n receive " << (*recvProcessNeighborHost)[i].numberOfNodes << std::endl;
+        // std::cout << "Process " << comm.getPID() << " dir " << i << " n receive " << (*recvProcessNeighborHost)[i].numberOfNodes << " n f's " << (*recvProcessNeighborHost)[i].numberOfFs << std::endl;
         // if((*recvProcessNeighborHost)[i].numberOfNodes>0){
             comm.nbRecvDataGPU((*recvProcessNeighborHost)[i].f[0], 
                                 (*recvProcessNeighborHost)[i].numberOfFs,
-- 
GitLab