From 252fdecdc123bebc96ffa5f5b518fed45cefdc96 Mon Sep 17 00:00:00 2001 From: James E McClure Date: Sat, 4 Jul 2015 09:40:48 -0400 Subject: [PATCH] Fixed a bug in the initialization of D3Q7 distributions --- cpu/D3Q7.cpp | 2 +- gpu/D3Q7.cu | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cpu/D3Q7.cpp b/cpu/D3Q7.cpp index cad61479..2f9d8217 100644 --- a/cpu/D3Q7.cpp +++ b/cpu/D3Q7.cpp @@ -71,7 +71,7 @@ extern "C" void InitD3Q7(char *ID, double *f_even, double *f_odd, double *Den, i f_even[3*N+n] = 0.1111111111111111*value; //double(100*n)+6.f; } else{ - for(int q=0; q<2; q++){ + for(int q=0; q<3; q++){ f_even[q*N+n] = -1.0; f_odd[q*N+n] = -1.0; } diff --git a/gpu/D3Q7.cu b/gpu/D3Q7.cu index 1f1a83c6..d8de261c 100644 --- a/gpu/D3Q7.cu +++ b/gpu/D3Q7.cu @@ -82,7 +82,7 @@ __global__ void dvc_InitD3Q7(char *ID, double *f_even, double *f_odd, double *De f_even[3*N+n] = 0.1111111111111111*value; //double(100*n)+6.f; } else{ - for(int q=0; q<2; q++){ + for(int q=0; q<3; q++){ f_even[q*N+n] = -1.0; f_odd[q*N+n] = -1.0; }