Skip to content

Commit

Permalink
Update Src/AmrCore/AMReX_AmrMesh.cpp
Browse files Browse the repository at this point in the history
Co-authored-by: Weiqun Zhang <WeiqunZhang@lbl.gov>
  • Loading branch information
akashdhruv and WeiqunZhang committed Sep 28, 2023
1 parent ef3b524 commit 7638198
Showing 1 changed file with 4 additions and 20 deletions.
24 changes: 4 additions & 20 deletions Src/AmrCore/AMReX_AmrMesh.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -458,30 +458,14 @@ AmrMesh::MakeDistributionMap (int lev, BoxArray const& ba)
amrex::Print() << "Creating new distribution map on level: " << lev << "\n";
}

// initialize new distribution mapping
DistributionMapping dm;

#ifdef AMREX_USE_BITTREE
if(!use_bittree)
{
#endif
// create distribution mapping using boxarray
dm.define(ba);

#ifdef AMREX_USE_BITTREE
}
// if (use_bittree) {
// return DistributionMapping(ba);
// } else
#endif

#ifdef AMREX_USE_BITTREE
// Bittree version
if(use_bittree)
{
// create distribution mapping
dm.define(ba);
return DistributionMapping(ba);
}
#endif

return dm;
}

void
Expand Down

0 comments on commit 7638198

Please sign in to comment.