Skip to content

Commit

Permalink
get neig/own only for internal faces
Browse files Browse the repository at this point in the history
  • Loading branch information
greole committed Feb 15, 2025
1 parent 139ea2c commit 3e5215b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/finiteVolume/cellCentred/interpolation/linear.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@ void computeLinearInterpolation(
exec,
{0, dstS.size()},
KOKKOS_LAMBDA(const size_t facei) {
size_t own = static_cast<size_t>(ownerS[facei]);
size_t nei = static_cast<size_t>(neighS[facei]);
if (facei < nInternalFaces)
{
size_t own = static_cast<size_t>(ownerS[facei]);
size_t nei = static_cast<size_t>(neighS[facei]);
dstS[facei] = weightS[facei] * srcS[own] + (1 - weightS[facei]) * srcS[nei];
}
else
Expand Down

0 comments on commit 3e5215b

Please sign in to comment.