#include <source/hierarchy/patches/PatchLevelFactory.h>
Public Member Functions | |
PatchLevelFactory () | |
virtual | ~PatchLevelFactory () |
virtual tbox::Pointer< PatchLevel< DIM > > | allocate (const BoxArray< DIM > &boxes, const ProcessorMapping &mapping, const IntVector< DIM > &ratio_to_level_zero, const tbox::Pointer< GridGeometry< DIM > > grid_geometry, const tbox::Pointer< PatchDescriptor< DIM > > descriptor, tbox::Pointer< PatchFactory< DIM > > factory=(0), const bool defer_boundary_box_creation=false) const |
virtual tbox::Pointer< PatchLevel< DIM > > | allocate (tbox::Pointer< tbox::Database > database, const tbox::Pointer< GridGeometry< DIM > > grid_geometry, const tbox::Pointer< PatchDescriptor< DIM > > descriptor, tbox::Pointer< PatchFactory< DIM > > factory=(0), const ComponentSelector component_selector=ComponentSelector(false), const bool defer_boundary_box_creation=false) const |
SAMRAI::hier::PatchLevelFactory< DIM >::PatchLevelFactory | ( | ) | [inline] |
Construct a patch level factory object.
SAMRAI::hier::PatchLevelFactory< DIM >::~PatchLevelFactory | ( | ) | [virtual] |
Virtual destructor for patch level factory objects.
tbox::Pointer< PatchLevel< DIM > > SAMRAI::hier::PatchLevelFactory< DIM >::allocate | ( | const BoxArray< DIM > & | boxes, | |
const ProcessorMapping & | mapping, | |||
const IntVector< DIM > & | ratio_to_level_zero, | |||
const tbox::Pointer< GridGeometry< DIM > > | grid_geometry, | |||
const tbox::Pointer< PatchDescriptor< DIM > > | descriptor, | |||
tbox::Pointer< PatchFactory< DIM > > | factory = (0) , |
|||
const bool | defer_boundary_box_creation = false | |||
) | const [virtual] |
Allocate a patch level with the specified boxes and processor mappings. Redefine this function to change the method for creating patch levels.
tbox::Pointer< PatchLevel< DIM > > SAMRAI::hier::PatchLevelFactory< DIM >::allocate | ( | tbox::Pointer< tbox::Database > | database, | |
const tbox::Pointer< GridGeometry< DIM > > | grid_geometry, | |||
const tbox::Pointer< PatchDescriptor< DIM > > | descriptor, | |||
tbox::Pointer< PatchFactory< DIM > > | factory = (0) , |
|||
const ComponentSelector | component_selector = ComponentSelector(false) , |
|||
const bool | defer_boundary_box_creation = false | |||
) | const [virtual] |
Allocate a patch level using the data from the database to initialize it. The component_selector argument is used to specify which patch data components to allocate and read in from the database. By default, the component_selector has all its bits set to false so that no patch data components are allocated and read from the database.
Redefine this function to change the method for creating patch levels from a database.