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

Method Domain

Src/Base/AMReX_FabArrayBase.cpp:2213–2230  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2211}
2212
2213Box
2214FabArrayBase::CFinfo::Domain (const Geometry& geom, const IntVect& ng,
2215 bool include_periodic, bool include_physbndry)
2216{
2217 Box bx = geom.Domain();
2218 for (int idim = 0; idim < AMREX_SPACEDIM; ++idim) {
2219 if (geom.isPeriodic(idim)) {
2220 if (include_periodic) {
2221 bx.grow(idim, ng[idim]);
2222 }
2223 } else {
2224 if (include_physbndry) {
2225 bx.grow(idim, ng[idim]);
2226 }
2227 }
2228 }
2229 return bx;
2230}
2231
2232Long
2233FabArrayBase::CFinfo::bytes () const

Callers 2

define_epoMethod · 0.45

Calls 1

isPeriodicMethod · 0.45

Tested by

no test coverage detected