Skip to content

Commit

Permalink
BoxArray::simplified() & simplified_list() (#1786)
Browse files Browse the repository at this point in the history
Make them public so that they can be used by application codes to regenerate
grids covering exactly the same region but with a different max grid size.
However, it should be emphasized that they only work with regular BoxArrays
without anything like coarsening.
  • Loading branch information
WeiqunZhang authored Feb 11, 2021
1 parent 7742e1c commit df5bbe9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Src/Base/AMReX_BoxArray.H
Original file line number Diff line number Diff line change
Expand Up @@ -804,16 +804,16 @@ public:
//! Make ourselves unique.
void uniqify ();

BoxList const& simplified_list () const; // For regular AMR grids only!!!
BoxArray simplified () const; // For regular AMR grids only!!!

friend class AmrMesh;
friend class FabArrayBase;

private:
//! Update BoxArray index type according the box type, and then convert boxes to cell-centered.
void type_update ();

BoxList const& simplified_list () const; // For regular AMR grids only
BoxArray simplified () const;

BARef::HashType& getHashMap () const;

IntVect getDoiLo () const noexcept;
Expand Down

0 comments on commit df5bbe9

Please sign in to comment.