From b4936bfa280d1274e1e163388474411b2c6addbb Mon Sep 17 00:00:00 2001 From: James E McClure Date: Tue, 4 Sep 2018 22:00:33 -0400 Subject: [PATCH] fix phase field init --- cpu/Color.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpu/Color.cpp b/cpu/Color.cpp index dd2f863a..40a70552 100644 --- a/cpu/Color.cpp +++ b/cpu/Color.cpp @@ -2784,7 +2784,7 @@ extern "C" void ScaLBL_PhaseField_Init(int *Map, double *Phi, double *Den, doubl nB = 1.0; nA = 0.f; } else{ - nA=0.5*(phi-1.f); + nA=0.5*(phi+1.f); nB=0.5*(1.f-phi); } Den[idx] = nA;