fix phase field init
This commit is contained in:
parent
b04120e8f0
commit
b4936bfa28
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user