|
IBAMR
IBAMR version 0.19.
|
#include <NodeDataFactory.h>

Public Member Functions | |
| NodeDataFactory (int depth, const hier::IntVector< DIM > &ghosts, bool fine_boundary_represents_var) | |
| virtual | ~NodeDataFactory () |
| virtual tbox::Pointer< hier::PatchDataFactory< DIM > > | cloneFactory (const hier::IntVector< DIM > &ghosts) |
| Abstract virtual function to clone a patch data factory. More... | |
| virtual tbox::Pointer< hier::PatchData< DIM > > | allocate (const hier::Box< DIM > &box, tbox::Pointer< tbox::Arena > pool=tbox::Pointer< tbox::Arena >(NULL)) const |
| virtual tbox::Pointer< hier::PatchData< DIM > > | allocate (const hier::Patch< DIM > &patch, tbox::Pointer< tbox::Arena > pool=tbox::Pointer< tbox::Arena >(NULL)) const |
| virtual tbox::Pointer< hier::BoxGeometry< DIM > > | getBoxGeometry (const hier::Box< DIM > &box) const |
| int | getDefaultDepth () const |
| void | setDefaultDepth (const int depth) |
| virtual size_t | getSizeOfMemory (const hier::Box< DIM > &box) const |
| bool | fineBoundaryRepresentsVariable () const |
| bool | dataLivesOnPatchBorder () const |
| bool | validCopyTo (const tbox::Pointer< hier::PatchDataFactory< DIM > > &dst_pdf) const |
| hier::MultiblockDataTranslator< DIM > * | getMultiblockDataTranslator () |
| virtual tbox::Pointer< PatchDataFactory< DIM > > | cloneFactory (const IntVector< DIM > &ghosts)=0 |
| Abstract virtual function to clone a patch data factory. More... | |
| virtual tbox::Pointer< PatchData< DIM > > | allocate (const Box< DIM > &box, tbox::Pointer< tbox::Arena > pool=(tbox::Arena *) NULL) const =0 |
| Abstract virtual function to allocate a concrete patch data object. More... | |
| virtual tbox::Pointer< BoxGeometry< DIM > > | getBoxGeometry (const Box< DIM > &box) const =0 |
| Abstract virtual function to allocate a concrete box geometry object. More... | |
| const IntVector< DIM > & | getGhostCellWidth () const |
| Get the ghost cell width. More... | |
| virtual size_t | getSizeOfMemory (const Box< DIM > &box) const =0 |
| Abstract virtual function to compute the amount of memory needed to allocate for object data and to represent the object itself. More... | |
Protected Attributes | |
| IntVector< DIM > | d_ghosts |
Private Attributes | |
| int | d_depth |
| bool | d_fine_boundary_represents_var |
| MultiblockNodeDataTranslator< DIM, TYPE > * | d_mb_trans |
Class NodeDataFactory is a factory class used to allocate new instances of NodeData objects. It is a subclass of the patch data factory class and node data is a subclass of patch data. Both the factory and data classes are templated on the type of the contained object (e.g., double or int).
| SAMRAI::pdat::NodeDataFactory< DIM, TYPE >::NodeDataFactory | ( | int | depth, |
| const hier::IntVector< DIM > & | ghosts, | ||
| bool | fine_boundary_represents_var | ||
| ) |
The constructor for the node data factory class. The ghost cell width, depth (number of components), and fine boundary representation arguments give the defaults for all edge data objects created with this factory. See the NodeVariable<DIM> class header file for more information.
|
virtual |
Virtual destructor for the node data factory class.
|
virtual |
This will return a new instantiation of the abstract factory with the same properties. The properties of the cloned factory can then be changed without modifying the original.
| ghosts | default ghost cell width for concrete classes created from the factory. |
|
virtual |
Virtual factory function to allocate a concrete node data object. The default information about the object (e.g., ghost cell width) is taken from the factory. If no memory pool is provided, then the allocation routine assumes some default memory pool.
|
virtual |
Virtual factory function to allocate a concrete cell data object. Same as above function, except passes in a patch instead of a box.
Implements SAMRAI::hier::PatchDataFactory< DIM >.
|
virtual |
Allocate the box geometry object associated with the patch data. This information will be used in the computation of intersections and data dependencies between objects.
| int SAMRAI::pdat::NodeDataFactory< DIM, TYPE >::getDefaultDepth | ( | ) | const |
Get the default depth (number of components). This is the default depth that will be used in the instantiation of node data objects.
| void SAMRAI::pdat::NodeDataFactory< DIM, TYPE >::setDefaultDepth | ( | const int | depth | ) |
Set the default depth (number of components). This is the default depth that will be used in the instantiation of node data objects.
|
virtual |
Calculate the amount of memory needed to store the node data object, including object data and dynamically allocated data.
|
inlinevirtual |
Return a boolean value indicating how data for the node quantity will be treated on coarse-fine interfaces. This value is passed into the constructor. See the NodeVariable<DIM> class header file for more information.
Implements SAMRAI::hier::PatchDataFactory< DIM >.
|
inlinevirtual |
Return true since the node data index space extends beyond the interior of patches. That is, node data lives on patch borders.
Implements SAMRAI::hier::PatchDataFactory< DIM >.
|
virtual |
Return whether it is valid to copy this NodeDataFactory to the supplied destination patch data factory. It will return true if dst_pdf is NodeDataFactory or OuternodeDataFactory, false otherwise.
Implements SAMRAI::hier::PatchDataFactory< DIM >.
|
virtual |
Return pointer to a multiblock data translator
Reimplemented from SAMRAI::hier::PatchDataFactory< DIM >.
|
pure virtualinherited |
This will return a new instantiation of the abstract factory with the same properties. The properties of the cloned factory can then be changed without modifying the original.
| ghosts | ghost cell width for concrete classes created from the factory. |
|
pure virtualinherited |
The default information about the object (e.g., ghost cell width) is taken from the factory. If no memory pool is provided, then the allocation routine assumes some default memory pool.
|
pure virtualinherited |
The box geometry object will be used in the calculation of box intersections for the computation of data dependencies.
|
inherited |
This is the ghost cell width that will be used in the instantiation of concrete patch data instances. The ghost width is specified in the clone method.
|
pure virtualinherited |
This includes any dynamic storage, such as arrays, needed by the concrete patch data instance. Although the patch data subclass may choose not to allocate memory from the provided memory pool, it must not use more memory than requested here.
|
private |
|
private |
|
private |
|
protectedinherited |
1.8.17