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

Method getEdgeCentData

Src/EB/AMReX_EBFArrayBox.cpp:156–171  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

154}
155
156Array<const FArrayBox*, AMREX_SPACEDIM>
157EBFArrayBox::getEdgeCentData () const
158{
159 if (m_factory && m_box_index >= 0) {
160 Array<MultiCutFab const*, AMREX_SPACEDIM> const& mfs = m_factory->getEdgeCent();
161 if (mfs[0]->ok(m_box_index)) {
162 return {AMREX_D_DECL(&((*mfs[0])[m_box_index]),
163 &((*mfs[1])[m_box_index]),
164 &((*mfs[2])[m_box_index]))};
165 } else {
166 return {AMREX_D_DECL(nullptr,nullptr,nullptr)};
167 }
168 } else {
169 return {AMREX_D_DECL(nullptr,nullptr,nullptr)};
170 }
171}
172
173const EBCellFlagFab&
174getEBCellFlagFab (const FArrayBox& fab)

Callers

nothing calls this directly

Calls 2

getEdgeCentMethod · 0.45
okMethod · 0.45

Tested by

no test coverage detected