diff --git a/src/gpu/VirtualFluids_GPU/GPU/GridScaling/scaleFC_compressible.cu b/src/gpu/VirtualFluids_GPU/GPU/GridScaling/scaleFC_compressible.cu index 2fa7c592c6ff8e93fcf921d0769a5a835efb7f04..c89a524c1dd63f426254c395d1e4881a7e96ce7a 100644 --- a/src/gpu/VirtualFluids_GPU/GPU/GridScaling/scaleFC_compressible.cu +++ b/src/gpu/VirtualFluids_GPU/GPU/GridScaling/scaleFC_compressible.cu @@ -559,7 +559,7 @@ template<bool hasTurbulentViscosity> __global__ void scaleFC_compressible( // z = 0.; //////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // index of the destination node and its neighbors - k_000 = indicesCoarse000[k_thread]; + k_000 = indicesCoarse000[nodeIndex]; k_M00 = neighborXcoarse [k_000]; k_0M0 = neighborYcoarse [k_000]; k_00M = neighborZcoarse [k_000];