From cc61cb940d99e4037e2dac073be0d8ca9d7c1d2d Mon Sep 17 00:00:00 2001 From: Rex Zhe Li Date: Sun, 19 Apr 2020 23:35:37 -0400 Subject: [PATCH] fix another dumb bug --- gpu/GreyscaleColor.cu | 1 + 1 file changed, 1 insertion(+) diff --git a/gpu/GreyscaleColor.cu b/gpu/GreyscaleColor.cu index 74fe1923..b9519cd7 100644 --- a/gpu/GreyscaleColor.cu +++ b/gpu/GreyscaleColor.cu @@ -4029,6 +4029,7 @@ __global__ void dvc_ScaLBL_D3Q7_GreyColorIMRT_Init(double *Den, double *Cq, doub nA = Den[idx]; nB = Den[idx+Np]; phi = nA-nB; + phi_lap = PhiLap[idx]; chem = lambdaA*(nA*nA*nA-1.5*nA*nA+0.5*nA)-lambdaB*(nB*nB*nB-1.5*nB*nB+0.5*nB)-0.25*(kappaA+kappaB)*phi_lap; Cq[1*Np+idx]=0.5*gamma*chem;