Skip to content
Snippets Groups Projects
Commit 91a2fc08 authored by Anna Wellmann's avatar Anna Wellmann
Browse files

Merge branch 'removeDuplicateVariables' into 'develop'

Small fix: Remove unused variable in QDeviceComp27

See merge request irmb/VirtualFluids_dev!117
parents e43241b6 982e21f7
No related branches found
No related tags found
1 merge request!117Small fix: Remove unused variable in QDeviceComp27
...@@ -122,11 +122,11 @@ void multipleLevel(const std::string& configPath) ...@@ -122,11 +122,11 @@ void multipleLevel(const std::string& configPath)
real dx = L / real(nx); real dx = L / real(nx);
//gridBuilder->addCoarseGrid(-0.5 * L, -0.5 * L, -0.5 * L, gridBuilder->addCoarseGrid(-0.5 * L, -0.5 * L, -0.5 * L,
// 0.5 * L, 0.5 * L, 0.5 * L, dx); 0.5 * L, 0.5 * L, 0.5 * L, dx);
gridBuilder->addCoarseGrid(-2.0 * dx, -0.5 * L, -0.5 * L, // gridBuilder->addCoarseGrid(-2.0 * dx, -0.5 * L, -0.5 * L,
2.0 * dx, 0.5 * L, 0.5 * L, dx); // 2.0 * dx, 0.5 * L, 0.5 * L, dx);
auto refBox = new Cuboid(-0.1 * L, -0.1 * L, -0.1 * L, auto refBox = new Cuboid(-0.1 * L, -0.1 * L, -0.1 * L,
0.1 * L, 0.1 * L, 0.1 * L); 0.1 * L, 0.1 * L, 0.1 * L);
......
...@@ -1763,7 +1763,7 @@ extern "C" __global__ void QDeviceComp27( ...@@ -1763,7 +1763,7 @@ extern "C" __global__ void QDeviceComp27(
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
//! - Update distributions with subgrid distance (q) between zero and one //! - Update distributions with subgrid distance (q) between zero and one
real feq, q, velocityLB, velocityBC; real feq, q, velocityLB;
q = (subgridD.q[dirE])[k]; q = (subgridD.q[dirE])[k];
if (q>=c0o1 && q<=c1o1) // only update distribution for q between zero and one if (q>=c0o1 && q<=c1o1) // only update distribution for q between zero and one
{ {
...@@ -1776,6 +1776,7 @@ extern "C" __global__ void QDeviceComp27( ...@@ -1776,6 +1776,7 @@ extern "C" __global__ void QDeviceComp27(
if (q>=c0o1 && q<=c1o1) if (q>=c0o1 && q<=c1o1)
{ {
velocityLB = -vx1; velocityLB = -vx1;
feq = getEquilibriumForBC(drho, velocityLB, cu_sq, c2o27); feq = getEquilibriumForBC(drho, velocityLB, cu_sq, c2o27);
(dist.f[dirE])[ke] = getInterpolatedDistributionForNoSlipBC(q, f_W, f_E, feq, omega, c2o27); (dist.f[dirE])[ke] = getInterpolatedDistributionForNoSlipBC(q, f_W, f_E, feq, omega, c2o27);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment