MCPcopy Create free account
hub / github.com/AMReX-Codes/amrex / simplify

Method simplify

Src/Base/AMReX_BoxList.cpp:651–665  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

649}
650
651int
652BoxList::simplify (bool best)
653{
654 std::ranges::sort(m_lbox, [](const Box& l, const Box& r) {
655 return l.smallEnd() < r.smallEnd(); });
656
657 //
658 // If we're not looking for the "best" we can do in one pass, we
659 // limit how far afield we look for abutting boxes. This greatly
660 // speeds up this routine for large numbers of boxes. It does not
661 // do quite as good a job though as full brute force.
662 //
663 int depth = best ? static_cast<int>(size()) : 100;
664 return simplify_doit(depth);
665}
666
667int
668BoxList::ordered_simplify ()

Callers 6

MakeNewGridsMethod · 0.80
initializeMethod · 0.80
define_fb_metadataMethod · 0.80
removeOverlapMethod · 0.80
GetBndryCellsFunction · 0.80

Calls 1

sizeFunction · 0.85

Tested by

no test coverage detected