Trying to find bug in ComputePhaseComponent
This commit is contained in:
parent
3462c42bd1
commit
b43d370a56
@ -158,7 +158,7 @@ int ComputeLocalBlobIDs( const DoubleArray& Phase, const DoubleArray& SignDist,
|
||||
PROFILE_STOP("ComputeLocalBlobIDs");
|
||||
return nblobs;
|
||||
}
|
||||
int ComputeLocalPhaseComponent(const IntArray &PhaseID, int VALUE, BlobIDArray &ComponentLabel, bool periodic )
|
||||
int ComputeLocalPhaseComponent(const IntArray &PhaseID, int &VALUE, BlobIDArray &ComponentLabel, bool periodic )
|
||||
{
|
||||
PROFILE_START("ComputeLocalPhaseComponent");
|
||||
size_t Nx = PhaseID.size(0);
|
||||
@ -445,7 +445,7 @@ int ComputeGlobalBlobIDs( int nx, int ny, int nz, const RankInfoStruct& rank_inf
|
||||
return nglobal;
|
||||
}
|
||||
int ComputeGlobalPhaseComponent( int nx, int ny, int nz, const RankInfoStruct& rank_info,
|
||||
const IntArray &PhaseID, int VALUE, BlobIDArray &GlobalBlobID )
|
||||
const IntArray &PhaseID, int &VALUE, BlobIDArray &GlobalBlobID )
|
||||
{
|
||||
PROFILE_START("ComputeGlobalPhaseComponent");
|
||||
// First compute the local ids
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user