|
| | LData (std::string name, unsigned int num_local_nodes, unsigned int depth, std::vector< int > nonlocal_petsc_indices=std::vector< int >(0)) |
| | Constructor.
|
| |
| | LData (std::string name, Vec vec, std::vector< int > nonlocal_petsc_indices=std::vector< int >(0), const bool manage_petsc_vec=true) |
| | Constructor.
|
| |
|
| 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.
|
| |
|
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.
|
| |
|
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.
|
| |
| 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.
|
| |
| 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.
|
| |
| 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.
|
| |
| 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.
|
| |
| 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.
|
| |
| 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.
|
| |
| void | restoreArrays () |
| | Restore any arrays extracted via calls to getArray(), getLocalFormArray(), and getGhostedLocalFormArray().
|
| |
|
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.