Merge branch 'master' of github.com:JamesEMcClure/LBPM-WIA

This commit is contained in:
James E McClure
2018-09-07 13:08:13 -04:00
10 changed files with 181 additions and 137 deletions

View File

@@ -2792,11 +2792,15 @@ extern "C" void ScaLBL_PhaseField_Init(int *Map, double *Phi, double *Den, doubl
n = Map[idx];
phi = Phi[n];
if (phi > 0.f){
nA = 1.0; nB = 0.f;
if (phi > 1.f){
nA = 1.0; nB = 0.f;
}
else if (phi < -1.f){
nB = 1.0; nA = 0.f;
}
else{
nB = 1.0; nA = 0.f;
nA=0.5*(phi+1.f);
nB=0.5*(1.f-phi);
}
Den[idx] = nA;
Den[Np+idx] = nB;