Skip to content

Commit

Permalink
FabSet::multiFab (AMReX-Codes#2604)
Browse files Browse the repository at this point in the history
Add public member functions to FabSet to expose the internal MultiFab data.
  • Loading branch information
WeiqunZhang authored Jan 27, 2022
1 parent d38b423 commit f7c9c3b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Src/Boundary/AMReX_FabSet.H
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,9 @@ public:
const DistributionMapping& DistributionMap () const noexcept
{ return m_mf.DistributionMap(); }

MultiFab & multiFab () noexcept { return m_mf; }
MultiFab const& multiFab () const noexcept { return m_mf; }

int nComp () const noexcept { return m_mf.nComp(); }

void clear () { m_mf.clear(); }
Expand Down

0 comments on commit f7c9c3b

Please sign in to comment.