The PatchLevel represents a distributed grid containing plain simulation data without a ghost cell layer.
More...
#include <PatchHierarchy.hpp>
|
| PatchLevel ()=default |
|
| ~PatchLevel () noexcept=default |
|
| PatchLevel (const PatchLevel &other) |
| Creates a independent copy of the patch level. More...
|
|
PatchLevel & | operator= (const PatchLevel &other) |
| Create a copy of the other patch level, deallocate old memory and allocate new memory for the copied data. More...
|
|
| PatchLevel (int num, Duration tp, const ::amrex::BoxArray &ba, const ::amrex::DistributionMapping &dm, int n_components) |
| Allocates arrays with specified box array and distribution mapping. More...
|
|
| PatchLevel (int num, Duration tp, const ::amrex::BoxArray &ba, const ::amrex::DistributionMapping &dm, const DataDescription &desc) |
| Allocates arrays with specified box array and distribution mapping. More...
|
|
| PatchLevel (int num, Duration tp, const ::amrex::BoxArray &ba, const ::amrex::DistributionMapping &dm, int n_components, const ::amrex::FabFactory<::amrex::FArrayBox > &factory) |
| Allocates arrays with specified box array and distribution mapping. More...
|
|
|
| PatchLevel (PatchLevel &&other) noexcept=default |
| Moves a patch level without any allocations happening. More...
|
|
PatchLevel & | operator= (PatchLevel &&other)=default |
| Moves a patch level without any allocations happening. More...
|
|
The PatchLevel represents a distributed grid containing plain simulation data without a ghost cell layer.
Copying a patch level object will deeply copy the data and creates a new independent patch level. This includes making duplicate objects of box array and distribution mapping and modifying the copy will not affect the original patch level in any way.
◆ PatchLevel() [1/6]
fub::amrex::PatchLevel::PatchLevel |
( |
| ) |
|
|
default |
◆ ~PatchLevel()
fub::amrex::PatchLevel::~PatchLevel |
( |
| ) |
|
|
defaultnoexcept |
◆ PatchLevel() [2/6]
fub::amrex::PatchLevel::PatchLevel |
( |
const PatchLevel & |
other | ) |
|
Creates a independent copy of the patch level.
◆ PatchLevel() [3/6]
fub::amrex::PatchLevel::PatchLevel |
( |
PatchLevel && |
other | ) |
|
|
defaultnoexcept |
Moves a patch level without any allocations happening.
◆ PatchLevel() [4/6]
fub::amrex::PatchLevel::PatchLevel |
( |
int |
num, |
|
|
Duration |
tp, |
|
|
const ::amrex::BoxArray & |
ba, |
|
|
const ::amrex::DistributionMapping & |
dm, |
|
|
int |
n_components |
|
) |
| |
Allocates arrays with specified box array and distribution mapping.
- Parameters
-
num | the refinement level number |
tp | the time point of the simulation |
ba | the box array of the distributed array |
dm | the distribution mapping for the array |
n_components | the number of components of the array |
◆ PatchLevel() [5/6]
fub::amrex::PatchLevel::PatchLevel |
( |
int |
num, |
|
|
Duration |
tp, |
|
|
const ::amrex::BoxArray & |
ba, |
|
|
const ::amrex::DistributionMapping & |
dm, |
|
|
const DataDescription & |
desc |
|
) |
| |
Allocates arrays with specified box array and distribution mapping.
- Parameters
-
num | the refinement level number |
tp | the time point of the simulation |
ba | the box array of the distributed array |
dm | the distribution mapping for the array |
n_components | the number of components of the array |
◆ PatchLevel() [6/6]
fub::amrex::PatchLevel::PatchLevel |
( |
int |
num, |
|
|
Duration |
tp, |
|
|
const ::amrex::BoxArray & |
ba, |
|
|
const ::amrex::DistributionMapping & |
dm, |
|
|
int |
n_components, |
|
|
const ::amrex::FabFactory<::amrex::FArrayBox > & |
factory |
|
) |
| |
Allocates arrays with specified box array and distribution mapping.
- Parameters
-
num | the refinement level number |
tp | the time point of the simulation |
ba | the box array of the distributed array |
dm | the distribution mapping for the array |
n_components | the number of components of the array |
factory | the FAB factory, important with EB. |
◆ operator=() [1/2]
Create a copy of the other patch level, deallocate old memory and allocate new memory for the copied data.
◆ operator=() [2/2]
Moves a patch level without any allocations happening.
◆ box_array
::amrex::BoxArray fub::amrex::PatchLevel::box_array |
◆ cycles
std::ptrdiff_t fub::amrex::PatchLevel::cycles |
◆ data
::amrex::MultiFab fub::amrex::PatchLevel::data |
◆ distribution_mapping
::amrex::DistributionMapping fub::amrex::PatchLevel::distribution_mapping |
◆ faces
std::array<std::unique_ptr<::amrex::MultiFab>, AMREX_SPACEDIM> fub::amrex::PatchLevel::faces |
◆ level_number
int fub::amrex::PatchLevel::level_number |
◆ nodes
std::unique_ptr<::amrex::MultiFab> fub::amrex::PatchLevel::nodes |
◆ time_point
Duration fub::amrex::PatchLevel::time_point |
The documentation for this struct was generated from the following file: