| 891 | } |
| 892 | |
| 893 | bool |
| 894 | BoxArray::ok () const |
| 895 | { |
| 896 | const int N = static_cast<int>(size()); |
| 897 | if (N > 0) |
| 898 | { |
| 899 | auto const& bxs = this->m_ref->m_abox; |
| 900 | if (m_bat.is_null()) { |
| 901 | for (int i = 0; i < N; ++i) { |
| 902 | if (! bxs[i].ok()) { return false; } |
| 903 | } |
| 904 | } else if (m_bat.is_simple()) { |
| 905 | IndexType t = ixType(); |
| 906 | IntVect cr = crseRatio(); |
| 907 | for (int i = 0; i < N; ++i) { |
| 908 | if (! amrex::convert(amrex::coarsen(bxs[i],cr),t).ok()) { return false; } |
| 909 | } |
| 910 | } else { |
| 911 | for (int i = 0; i < N; ++i) { |
| 912 | if (! m_bat.m_op.m_bndryReg(bxs[i]).ok()) { return false; } |
| 913 | } |
| 914 | } |
| 915 | } |
| 916 | return true; |
| 917 | } |
| 918 | |
| 919 | bool |
| 920 | BoxArray::isDisjoint () const |
no test coverage detected