|
| LData (std::string name, unsigned int num_local_nodes, unsigned int depth, std::vector< int > nonlocal_petsc_indices=std::vector< int >(0)) |
| Constructor. More...
|
|
| LData (std::string name, Vec vec, std::vector< int > nonlocal_petsc_indices=std::vector< int >(0), const bool manage_petsc_vec=true) |
| Constructor. More...
|
|
| LData (SAMRAI::tbox::Pointer< SAMRAI::tbox::Database > db) |
| Constructor.
|
|
virtual | ~LData () |
| Virtual destructor.
|
|
virtual void | resetData (Vec vec, const std::vector< int > &nonlocal_petsc_indices=std::vector< int >(0), const bool manage_petsc_vec=true) |
| Reset data items. More...
|
|
const std::string & | getName () const |
| Returns a const reference to the name of this LData object.
|
|
unsigned int | getGlobalNodeCount () const |
| Returns the total number of Lagrangian nodes.
|
|
unsigned int | getLocalNodeCount () const |
| Returns the number of local (i.e., on processor) Lagrangian nodes. More...
|
|
unsigned int | getGhostNodeCount () const |
| Returns the number of local ghost nodes associated with the LData object.
|
|
unsigned int | getDepth () const |
| Returns the depth (i.e., the number of components per node) of the Lagrangian data.
|
|
Vec | getVec () |
| Returns the PETSc Vec object that stores the data. More...
|
|
boost::multi_array_ref< double, 1 > * | getArray () |
| Returns a pointer to a boost::multi_array_ref object that wraps the array corresponding to the PETSc Vec object. This method is appropriate only for scalar-valued quantities. More...
|
|
boost::multi_array_ref< double, 1 > * | getLocalFormArray () |
| Returns a pointer to a boost::multi_array_ref object that wraps the array corresponding to the PETSc Vec object. This method is appropriate only for scalar-valued quantities. More...
|
|
boost::multi_array_ref< double, 1 > * | getGhostedLocalFormArray () |
| Returns a pointer to a boost::multi_array_ref object that wraps the array corresponding to the ghosted local part of the PETSc Vec object. This method is appropriate only for scalar-valued quantities. More...
|
|
boost::multi_array_ref< double, 2 > * | getVecArray () |
| Returns a pointer to a boost::multi_array_ref object that wraps the array corresponding to the PETSc Vec object. This method is appropriate for either scalar- or vector-valued quantities. More...
|
|
boost::multi_array_ref< double, 2 > * | getLocalFormVecArray () |
| Returns a pointer to a boost::multi_array_ref object that wraps the array corresponding to the PETSc Vec object. This method is appropriate for either scalar- or vector-valued quantities. More...
|
|
boost::multi_array_ref< double, 2 > * | getGhostedLocalFormVecArray () |
| Returns a pointer to a boost::multi_array_ref object that wraps the array corresponding to the ghosted local part of the PETSc Vec object. This method is appropriate for either scalar- or vector-valued quantities. More...
|
|
void | restoreArrays () |
| Restore any arrays extracted via calls to getArray(), getLocalFormArray(), and getGhostedLocalFormArray(). More...
|
|
void | beginGhostUpdate () |
| Begin updating ghost values.
|
|
void | endGhostUpdate () |
| End updating ghost values.
|
|
void | putToDatabase (SAMRAI::tbox::Pointer< SAMRAI::tbox::Database > db) override |
| Write out object state to the given database.
|
|
Class LData provides storage for a single scalar- or vector-valued Lagrangian quantity.