Block-Structured AMR Software Framework
Loading...
Searching...
No Matches
AMReX_BaseFab.H File Reference

BaseFab container template providing box-based field storage. More...

#include <AMReX_Config.H>
#include <AMReX_Algorithm.H>
#include <AMReX_Extension.H>
#include <AMReX_BLassert.H>
#include <AMReX_Array.H>
#include <AMReX_Box.H>
#include <AMReX_Loop.H>
#include <AMReX_BoxList.H>
#include <AMReX_BArena.H>
#include <AMReX_CArena.H>
#include <AMReX_DataAllocator.H>
#include <AMReX_REAL.H>
#include <AMReX_BLProfiler.H>
#include <AMReX_BoxIterator.H>
#include <AMReX_MakeType.H>
#include <AMReX_Utility.H>
#include <AMReX_Reduce.H>
#include <AMReX_Gpu.H>
#include <AMReX_Scan.H>
#include <AMReX_Math.H>
#include <AMReX_OpenMP.H>
#include <AMReX_MemPool.H>
#include <AMReX_TypeTraits.H>
#include <cmath>
#include <cstdlib>
#include <algorithm>
#include <limits>
#include <climits>
#include <array>
#include <type_traits>
#include <memory>
#include <atomic>
#include <utility>

Go to the source code of this file.

Classes

struct  amrex::SrcComp
 Source-component descriptor. More...
 
struct  amrex::DestComp
 Destination-component descriptor. More...
 
struct  amrex::NumComps
 Number-of-components descriptor. More...
 
class  amrex::BaseFab< T >
 A FortranArrayBox(FAB)-like object. More...
 

Namespaces

namespace  amrex
 

Functions

Long amrex::TotalBytesAllocatedInFabs () noexcept
 Total bytes currently held by all BaseFab instances on this rank.
 
Long amrex::TotalBytesAllocatedInFabsHWM () noexcept
 High-water mark of BaseFab bytes since the last reset.
 
Long amrex::TotalCellsAllocatedInFabs () noexcept
 Total spatial grid points (numPts) tracked for Real BaseFabs on this rank.
 
Long amrex::TotalCellsAllocatedInFabsHWM () noexcept
 High-water mark of Real BaseFab grid-point count since the last reset.
 
void amrex::ResetTotalBytesAllocatedInFabsHWM () noexcept
 Reset the byte high-water mark reported by TotalBytesAllocatedInFabsHWM().
 
void amrex::update_fab_stats (Long n, Long s, std::size_t szt) noexcept
 Internal helper used by BaseFab constructors/destructors to maintain stats.
 
void amrex::BaseFab_Initialize ()
 Initialize BaseFab subsystem resources (profilers, stats counters, etc.).
 
void amrex::BaseFab_Finalize ()
 Release any BaseFab subsystem resources.
 
template<typename T >
__host__ __device__ Array4< T > amrex::makeArray4 (T *p, Box const &bx, int ncomp) noexcept
 
template<typename T >
void amrex::placementNew (T *const ptr, Long n)
 Start the lifetime of objects in a preallocated buffer.
 
template<typename T >
void amrex::placementDelete (T *const ptr, Long n)
 Destroy objects previously constructed via placementNew.
 

Detailed Description

BaseFab container template providing box-based field storage.