Merge branch 'master' of github.com:JamesEMcClure/LBPM-WIA
This commit is contained in:
commit
71c72616c3
@ -306,12 +306,12 @@ public:
|
||||
void TwoPhase::ColorToSignedDistance(double Beta, double *ColorData, double *DistData){
|
||||
|
||||
double temp=0.5/Beta;
|
||||
/* for (int n=0; n<Nx*Ny*Nz; n++){
|
||||
for (int n=0; n<Nx*Ny*Nz; n++){
|
||||
double value = ColorData[n];
|
||||
DistData[n] = temp*log((1.0+value)/(1.0-value));
|
||||
}
|
||||
*/
|
||||
for (int n=0; n<Nx*Ny*Nz; n++) DistData[n] = ColorData[n];
|
||||
|
||||
// for (int n=0; n<Nx*Ny*Nz; n++) DistData[n] = ColorData[n];
|
||||
}
|
||||
|
||||
void TwoPhase::ComputeDelPhi(){
|
||||
|
@ -1684,6 +1684,7 @@ int main(int argc, char **argv)
|
||||
//....................................................................
|
||||
// The following need to be called each time new averages are computed
|
||||
Averages.Initialize();
|
||||
Averages.ComputeDelPhi();
|
||||
Averages.ColorToSignedDistance(beta,Averages.Phase.data,Averages.SDn.data);
|
||||
Averages.UpdateMeshValues();
|
||||
Averages.ComputeLocal();
|
||||
|
@ -1574,8 +1574,8 @@ int main(int argc, char **argv)
|
||||
CopyToHost(Averages.Phase_tminus.data,Phi,N*sizeof(double));
|
||||
Averages.ColorToSignedDistance(beta,Averages.Phase_tminus.data,Averages.Phase_tminus.data);
|
||||
//....................................................................
|
||||
// The following need to be called each time new averages are computed
|
||||
Averages.Initialize();
|
||||
Averages.ComputeDelPhi();
|
||||
Averages.ColorToSignedDistance(beta,Averages.Phase.data,Averages.SDn.data);
|
||||
Averages.UpdateMeshValues();
|
||||
Averages.ComputeLocal();
|
||||
|
Loading…
Reference in New Issue
Block a user