| 1610 | /// \endcond |
| 1611 | |
| 1612 | void |
| 1613 | BoxArray::uniqify () |
| 1614 | { |
| 1615 | if (m_ref.use_count() == 1) { |
| 1616 | clear_hash_bin(); |
| 1617 | } else { |
| 1618 | auto p = std::make_shared<BARef>(*m_ref); |
| 1619 | std::swap(m_ref,p); |
| 1620 | } |
| 1621 | IntVect cr = crseRatio(); |
| 1622 | if (cr != IntVect::TheUnitVector()) { |
| 1623 | const int N = static_cast<int>(m_ref->m_abox.size()); |
| 1624 | #ifdef AMREX_USE_OMP |
| 1625 | #pragma omp parallel for |
| 1626 | #endif |
| 1627 | for (int i = 0; i < N; i++) { |
| 1628 | m_ref->m_abox[i].coarsen(cr); |
| 1629 | } |
| 1630 | m_bat.set_coarsen_ratio(IntVect::TheUnitVector()); |
| 1631 | } |
| 1632 | m_simplified_list.reset(); |
| 1633 | } |
| 1634 | |
| 1635 | BoxList const& |
| 1636 | BoxArray::simplified_list () const |
no test coverage detected