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

Method getEBData

Src/EB/AMReX_EBFabFactory.cpp:188–200  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

186}
187
188EBData
189EBFArrayBoxFactory::getEBData (MFIter const& mfi) const noexcept
190{
191 int const li = mfi.LocalIndex();
192 auto const& ebflags_ma = this->getMultiEBCellFlagFab().const_arrays();
193#ifdef AMREX_USE_GPU
194 auto const* pebflag = ebflags_ma.dp + li;
195#else
196 auto const* pebflag = ebflags_ma.hp + li;
197#endif
198 return EBData{.m_cell_flag = pebflag,
199 .m_real_data = m_eb_data.data()+EBData::real_data_size*li};
200}
201
202EBDataArrays
203EBFArrayBoxFactory::getEBDataArrays () const noexcept

Callers 1

FsmoothMethod · 0.80

Calls 3

LocalIndexMethod · 0.80
const_arraysMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected