Block-Structured AMR Software Framework
Loading...
Searching...
No Matches
amrex::DescriptorList Class Reference

#include <AMReX_StateDescriptor.H>

Public Member Functions

void clear ()
 Remove all descriptors and reset the list to an empty state.
 
int size () const noexcept
 Returns number of descriptors currently stored.
 
void addDescriptor (int indx, IndexType typ, StateDescriptor::TimeCenter ttyp, int nextra, int num_comp, InterpBase *interp, bool extrap=false, bool store_in_checkpoint=true)
 Adds a new StateDescriptor at index indx.
 
void resetComponentBCs (int indx, int comp, const BCRec &bc, const StateDescriptor::BndryFunc &func)
 Forward resetComponentBCs() to descriptor indx.
 
void setComponent (int indx, int comp, const std::string &nm, const BCRec &bc, const StateDescriptor::BndryFunc &func, InterpBase *interp=nullptr, int max_map_start_comp=-1, int min_map_end_comp=-1)
 Forward the basic setComponent() overload to descriptor indx.
 
void setComponent (int indx, int comp, const Vector< std::string > &nm, const Vector< BCRec > &bc, const StateDescriptor::BndryFunc &func, InterpBase *interp=nullptr)
 Batch set multiple grouped components on descriptor indx.
 
const StateDescriptoroperator[] (int k) const noexcept
 Returns StateDescriptor stored at index k.
 

Detailed Description

A List of StateDescriptors.

A container class for StateDescriptors.

Member Function Documentation

◆ addDescriptor()

void amrex::DescriptorList::addDescriptor ( int  indx,
IndexType  typ,
StateDescriptor::TimeCenter  ttyp,
int  nextra,
int  num_comp,
InterpBase interp,
bool  extrap = false,
bool  store_in_checkpoint = true 
)

Adds a new StateDescriptor at index indx.

Parameters
indxSlot within the descriptor list (usually StateData index).
typIndex type (cell/nodal).
ttypTime-centering (Point or Interval).
nextraNumber of ghost cells.
num_compNumber of components stored.
interpDefault interpolater between levels.
extrapWhether to allow time extrapolation.
store_in_checkpointWhether to persist this descriptor in checkpoints.

◆ clear()

void amrex::DescriptorList::clear ( )

Remove all descriptors and reset the list to an empty state.

◆ operator[]()

const StateDescriptor & amrex::DescriptorList::operator[] ( int  k) const
noexcept

Returns StateDescriptor stored at index k.

◆ resetComponentBCs()

void amrex::DescriptorList::resetComponentBCs ( int  indx,
int  comp,
const BCRec bc,
const StateDescriptor::BndryFunc func 
)

Forward resetComponentBCs() to descriptor indx.

Parameters
indxDescriptor index into the list.
compComponent to update.
bcReplacement BCRec.
funcReplacement physical BC functor.

◆ setComponent() [1/2]

void amrex::DescriptorList::setComponent ( int  indx,
int  comp,
const std::string &  nm,
const BCRec bc,
const StateDescriptor::BndryFunc func,
InterpBase interp = nullptr,
int  max_map_start_comp = -1,
int  min_map_end_comp = -1 
)

Forward the basic setComponent() overload to descriptor indx.

Parameters
indxDescriptor index.
compComponent to configure.
nmComponent name.
bcBoundary condition recipe.
funcPhysical BC functor.
interpOptional per-component interpolater override.
max_map_start_compOptional coupling bound (see StateDescriptor::setComponent()).
min_map_end_compOptional coupling bound.

◆ setComponent() [2/2]

void amrex::DescriptorList::setComponent ( int  indx,
int  comp,
const Vector< std::string > &  nm,
const Vector< BCRec > &  bc,
const StateDescriptor::BndryFunc func,
InterpBase interp = nullptr 
)

Batch set multiple grouped components on descriptor indx.

Parameters
indxDescriptor index.
compStarting component index for the group.
nmNames assigned to each group entry.
bcBoundary condition records per entry.
funcPhysical BC functor shared across entries.
interpOptional interpolater override applied to every component in the group.

◆ size()

int amrex::DescriptorList::size ( ) const
noexcept

Returns number of descriptors currently stored.


The documentation for this class was generated from the following files: