Trying to find bug in ComputePhaseComponent

This commit is contained in:
James E McClure
2015-08-30 14:44:59 -04:00
parent 3462c42bd1
commit b43d370a56
2 changed files with 5 additions and 5 deletions

View File

@@ -457,7 +457,7 @@ void TwoPhase::AssignComponentLabels()
int LabelNWP=1;
int LabelWP=2;
// NOTE: labeling the wetting phase components is tricky! One sandstone media had over 800,000 components
//NumberComponents_WP = ComputeGlobalPhaseComponent(Dm.Nx-2,Dm.Ny-2,Dm.Nz-2,Dm.rank_info,PhaseID,LabelWP,Label_WP);
// NumberComponents_WP = ComputeGlobalPhaseComponent(Dm.Nx-2,Dm.Ny-2,Dm.Nz-2,Dm.rank_info,PhaseID,LabelWP,Label_WP);
// treat all wetting phase is connected
NumberComponents_WP=1;
for (int k=0; k<Nz; k++){
@@ -465,8 +465,8 @@ void TwoPhase::AssignComponentLabels()
for (int i=0; i<Nx; i++){
Label_WP(i,j,k) = 0;
if (SDs(i,j,k) > 0.0) PhaseID(i,j,k) = 0;
else if (Phase(i,j,k) > 0.0) PhaseID(i,j,k) = 1;
else PhaseID(i,j,k) = 2;
else if (Phase(i,j,k) > 0.0) PhaseID(i,j,k) = LabelNWP;
else PhaseID(i,j,k) = LabelWP;
}
}
}