Skip to content

Commit

Permalink
Simplified how AuxBoundary are built.
Browse files Browse the repository at this point in the history
We no longer have to explicitly force'm to not use the MinimizeCommCosts
code.
That code no longer exists.
  • Loading branch information
lijewski committed Oct 4, 2011
1 parent 41b3460 commit 54943ca
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 540 deletions.
17 changes: 1 addition & 16 deletions Src/C_AMRLib/AuxBoundaryData.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -101,22 +101,7 @@ AuxBoundaryData::initialize (const BoxArray& ba,

if (nba.size() > 0)
{
std::vector<long> wgts;

wgts.reserve(nba.size());

for (int i = 0; i < nba.size(); i++)
wgts.push_back(nba[i].numPts());

DistributionMapping dm;
//
// This call doesn't invoke the MinimizeCommCosts() stuff.
// There's very little to gain with this type of covering.
// This also guarantees that this DM won't be put into the cache.
//
dm.KnapSackProcessorMap(wgts,NProcs);

m_fabs.define(nba, n_comp, 0, dm, Fab_allocate);
m_fabs.define(nba, n_comp, 0, Fab_allocate);
}
else
{
Expand Down
Loading

0 comments on commit 54943ca

Please sign in to comment.