diff --git a/apps/gpu/LBM/DrivenCavity/DrivenCavity.cpp b/apps/gpu/LBM/DrivenCavity/DrivenCavity.cpp index a4e322ad6d6e383072f28ac34ca25799a73a2ff4..c5b7ad0c5e4fb9eae74cdf0284d4a38ea699ac5c 100644 --- a/apps/gpu/LBM/DrivenCavity/DrivenCavity.cpp +++ b/apps/gpu/LBM/DrivenCavity/DrivenCavity.cpp @@ -122,11 +122,11 @@ void multipleLevel(const std::string& configPath) real dx = L / real(nx); - //gridBuilder->addCoarseGrid(-0.5 * L, -0.5 * L, -0.5 * L, - // 0.5 * L, 0.5 * L, 0.5 * L, dx); + gridBuilder->addCoarseGrid(-0.5 * L, -0.5 * L, -0.5 * L, + 0.5 * L, 0.5 * L, 0.5 * L, dx); - gridBuilder->addCoarseGrid(-2.0 * dx, -0.5 * L, -0.5 * L, - 2.0 * dx, 0.5 * L, 0.5 * L, dx); + // gridBuilder->addCoarseGrid(-2.0 * dx, -0.5 * L, -0.5 * L, + // 2.0 * dx, 0.5 * L, 0.5 * L, dx); auto refBox = new Cuboid(-0.1 * L, -0.1 * L, -0.1 * L, 0.1 * L, 0.1 * L, 0.1 * L); diff --git a/src/gpu/VirtualFluids_GPU/GPU/NoSlipBCs27.cu b/src/gpu/VirtualFluids_GPU/GPU/NoSlipBCs27.cu index df24809593ffbfc79b2664773a39f156c28e5f7a..6dcdcf028eb3c0e8bd80e0ddd12737ecf250d925 100644 --- a/src/gpu/VirtualFluids_GPU/GPU/NoSlipBCs27.cu +++ b/src/gpu/VirtualFluids_GPU/GPU/NoSlipBCs27.cu @@ -1763,7 +1763,7 @@ extern "C" __global__ void QDeviceComp27( //////////////////////////////////////////////////////////////////////////////// //! - Update distributions with subgrid distance (q) between zero and one - real feq, q, velocityLB, velocityBC; + real feq, q, velocityLB; q = (subgridD.q[dirE])[k]; if (q>=c0o1 && q<=c1o1) // only update distribution for q between zero and one { @@ -1776,6 +1776,7 @@ extern "C" __global__ void QDeviceComp27( if (q>=c0o1 && q<=c1o1) { velocityLB = -vx1; + feq = getEquilibriumForBC(drho, velocityLB, cu_sq, c2o27); (dist.f[dirE])[ke] = getInterpolatedDistributionForNoSlipBC(q, f_W, f_E, feq, omega, c2o27); }