tests/lbpm_morphdrain_pp.cpp

This commit is contained in:
James E McClure
2019-09-30 22:36:53 -04:00
parent eb66dcaed6
commit 4e1e1e4523

View File

@@ -688,14 +688,9 @@ void SubPhase::AggregateLabels(char *FILENAME){
int nx = Dm->Nx;
int ny = Dm->Ny;
int nz = Dm->Nz;
int local_size = (nx-2)*(ny-2)*(nz-2);
signed char *LocalID;
LocalID = new signed char [local_size];
//printf("aggregate labels: local size=%i, global size = %i",local_size, full_size);
// assign the ID for the local sub-region
// assign the ID from the phase indicator field
for (int k=0; k<nz; k++){
for (int j=0; j<ny; j++){
for (int i=0; i<nx; i++){