From b64ceccc6b6e041a55d7afeeee6d0f48e1e7371b Mon Sep 17 00:00:00 2001 From: James E McClure Date: Fri, 26 Jan 2018 14:49:32 -0500 Subject: [PATCH] Fixed unitialized value --- cpu/D3Q19.cpp | 1 + gpu/D3Q19.cu | 1 + 2 files changed, 2 insertions(+) diff --git a/cpu/D3Q19.cpp b/cpu/D3Q19.cpp index 45d1a4d4..ac027399 100644 --- a/cpu/D3Q19.cpp +++ b/cpu/D3Q19.cpp @@ -1064,6 +1064,7 @@ extern "C" void ScaLBL_D3Q19_Pressure(double *dist, double *Pressure, int N) //........................................................................ // Registers to store the distributions //........................................................................ + f0 = dist[n]; f2 = dist[2*N+n]; f4 = dist[4*N+n]; f6 = dist[6*N+n]; diff --git a/gpu/D3Q19.cu b/gpu/D3Q19.cu index 93ac0232..adfb1db6 100644 --- a/gpu/D3Q19.cu +++ b/gpu/D3Q19.cu @@ -1569,6 +1569,7 @@ __global__ void dvc_ScaLBL_D3Q19_Pressure(const double *dist, double *Pressure, //........................................................................ // Registers to store the distributions //........................................................................ + f0 = dist[n]; f2 = dist[2*N+n]; f4 = dist[4*N+n]; f6 = dist[6*N+n];