3 #include <AMReX_Config.H>
12 #ifdef AMREX_PARTICLES
33 const int* is_per =
nullptr);
50 #ifdef AMREX_PARTICLES
51 [[nodiscard]]
AmrParGDB* GetParGDB () const noexcept {
return m_gdb.get(); }
63 virtual void regrid (
int lbase, Real time,
bool initial=
false);
65 void printGridSummary (std::ostream& os,
int min_lev,
int max_lev)
const noexcept;
85 #ifdef AMREX_PARTICLES
86 std::unique_ptr<AmrParGDB> m_gdb;
Provide basic functionalities to set up an AMR hierarchy.
Definition: AMReX_AmrCore.H:25
void MakeNewLevelFromScratch(int lev, Real time, const BoxArray &ba, const DistributionMapping &dm) override=0
virtual void ClearLevel(int lev)=0
Delete level data.
void InitFromScratch(Real time)
Initialize BoxArray, DistributionMapping and data from scratch. Calling this function requires the de...
Definition: AMReX_AmrCore.cpp:79
AmrCore()
Definition: AMReX_AmrCore.cpp:18
~AmrCore() override
Definition: AMReX_AmrCore.cpp:57
void printGridSummary(std::ostream &os, int min_lev, int max_lev) const noexcept
Definition: AMReX_AmrCore.cpp:140
AmrCore & operator=(AmrCore &&rhs) noexcept
Definition: AMReX_AmrCore.cpp:59
void ErrorEst(int lev, TagBoxArray &tags, Real time, int ngrow) override=0
Tag cells for refinement. TagBoxArray tags is built on level lev grids.
virtual void RemakeLevel(int lev, Real time, const BoxArray &ba, const DistributionMapping &dm)=0
Remake an existing level using provided BoxArray and DistributionMapping and fill with existing fine ...
AmrCore(const AmrCore &rhs)=delete
virtual void regrid(int lbase, Real time, bool initial=false)
Rebuild levels finer than lbase.
Definition: AMReX_AmrCore.cpp:85
virtual void MakeNewLevelFromCoarse(int lev, Real time, const BoxArray &ba, const DistributionMapping &dm)=0
Make a new level using provided BoxArray and DistributionMapping and fill with interpolated coarse le...
void InitAmrCore()
Definition: AMReX_AmrCore.cpp:71
Definition: AMReX_AmrMesh.H:62
Definition: AMReX_AmrParGDB.H:12
A collection of Boxes stored in an Array.
Definition: AMReX_BoxArray.H:549
Calculates the distribution of FABs to MPI processes.
Definition: AMReX_DistributionMapping.H:41
Rectangular problem domain geometry.
Definition: AMReX_Geometry.H:73
A Box with real dimensions. A RealBox is OK iff volume >= 0.
Definition: AMReX_RealBox.H:21
An array of TagBoxes.
Definition: AMReX_TagBox.H:150
Definition: AMReX_Amr.cpp:49
std::array< T, N > Array
Definition: AMReX_Array.H:24
Definition: AMReX_AmrMesh.H:20