Basics
In this chapter, we present the basics of AMReX. The implementation source
codes are in amrex/Src/Base/
. Note that AMReX classes and functions are in
namespace amrex
. For clarity, we usually drop amrex::
in the example
codes here. It is also assumed that headers have been properly included. We
recommend you study the tutorial in
amrex-tutorials/ExampleCodes/Basic/HeatEquation_EX1_C
while reading this chapter. After
reading this chapter, one should be able to develop single-level parallel codes
using AMReX. It should also be noted that this is not a comprehensive reference
manual.
- Dimensionality
- Vector, Array, GpuArray, Array1D, Array2D, and Array3D
- Real
- Long
- ParallelDescriptor
- ParallelContext
- ParmParse
- Parser
- Initialize and Finalize
- Example of AMR Grids
- Box, IntVect and IndexType
- Dim3 and XDim3
- RealBox and Geometry
- BoxArray
- DistributionMapping
- BaseFab, FArrayBox, IArrayBox, and Array4
- FabArray, MultiFab and iMultiFab
- MFIter and Tiling
- Fortran and C++ Kernels
- ParallelFor
- Ghost Cells
- Boundary Conditions
- Masks
- Memory Allocation
- Abort, Assertion and Backtrace