Skip to content

Commit

Permalink
add access function for EBFactory (moved out of IAMR) (#3417)
Browse files Browse the repository at this point in the history
  • Loading branch information
asalmgren authored Jul 11, 2023
1 parent b41f85a commit 3701d00
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Src/Amr/AMReX_AmrLevel.H
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,14 @@ public:
const DistributionMapping& DistributionMap () const noexcept { return dmap; }
//
const FabFactory<FArrayBox>& Factory () const noexcept { return *m_factory; }
//
#ifdef AMREX_USE_EB
const EBFArrayBoxFactory&
EBFactory () const noexcept {
return static_cast<amrex::EBFArrayBoxFactory const&>(*m_factory);
}
#endif

//! Number of grids at this level.
int numGrids () const noexcept { return static_cast<int>(grids.size()); }
//! Number of states at this level.
Expand Down

0 comments on commit 3701d00

Please sign in to comment.