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

Method ok

Src/Base/AMReX_BoxArray.cpp:893–917  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

891}
892
893bool
894BoxArray::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
919bool
920BoxArray::isDisjoint () const

Callers 4

AMReX_BoxArray.cppFile · 0.45
intersectionsMethod · 0.45
removeOverlapMethod · 0.45
GetBndryCellsFunction · 0.45

Calls 5

sizeFunction · 0.85
convertFunction · 0.85
is_nullMethod · 0.80
is_simpleMethod · 0.80
coarsenFunction · 0.70

Tested by

no test coverage detected