IBAMR
An adaptive and distributed-memory parallel implementation of the immersed boundary (IB) method
|
Class PETScVecUtilities provides utility functions for PETSc Vec objects. More...
#include </home/runner/work/IBAMR/IBAMR/ibtk/include/ibtk/PETScVecUtilities.h>
Methods acting on SAMRAI::hier::PatchLevel and | |
SAMRAI::hier::Variable objects. | |
static void | copyToPatchLevelVec (Vec &vec, int data_idx, int dof_index_idx, SAMRAI::tbox::Pointer< SAMRAI::hier::PatchLevel< NDIM > > patch_level) |
Copy data to a parallel PETSc Vec on the provided SAMRAI::hier::PatchLevel. | |
static void | copyFromPatchLevelVec (Vec &vec, int data_idx, int dof_index_idx, SAMRAI::tbox::Pointer< SAMRAI::hier::PatchLevel< NDIM > > patch_level, SAMRAI::tbox::Pointer< SAMRAI::xfer::RefineSchedule< NDIM > > data_synch_sched, SAMRAI::tbox::Pointer< SAMRAI::xfer::RefineSchedule< NDIM > > ghost_fill_sched) |
Copy data from a parallel PETSc Vec on the provided SAMRAI::hier::PatchLevel. | |
static SAMRAI::tbox::Pointer< SAMRAI::xfer::RefineSchedule< NDIM > > | constructDataSynchSchedule (int data_idx, SAMRAI::tbox::Pointer< SAMRAI::hier::PatchLevel< NDIM > > patch_level) |
Construct a RefineSchedule to synchronize shared values that can be used in conjunction with copyFromPatchLevelVec(). More... | |
static SAMRAI::tbox::Pointer< SAMRAI::xfer::RefineSchedule< NDIM > > | constructGhostFillSchedule (int data_idx, SAMRAI::tbox::Pointer< SAMRAI::hier::PatchLevel< NDIM > > patch_level) |
Construct a RefineSchedule to fill ghost cell values that can be used in conjunction with copyFromPatchLevelVec(). | |
static void | constructPatchLevelDOFIndices (std::vector< int > &num_dofs_per_proc, int dof_index_idx, SAMRAI::tbox::Pointer< SAMRAI::hier::PatchLevel< NDIM > > patch_level) |
Assign a DOF index to each unique degree of freedom on a SAMRAI::hier::PatchLevel. More... | |
static void | constructPatchLevelAO (AO &ao, std::vector< int > &num_dofs_per_proc, int dof_index_idx, SAMRAI::tbox::Pointer< SAMRAI::hier::PatchLevel< NDIM > > patch_level, const int ao_offset=0) |
Create an application ordering object (AO) that creates a mapping between global PETSc indices and mapping of SAMRAI data indices for patch data index dof_index_idx to a nonnegative integer on a SAMRAI::hier::PatchLevel. More... | |
Class PETScVecUtilities provides utility functions for PETSc Vec objects.
|
static |
Construct a RefineSchedule to synchronize shared values that can be used in conjunction with copyFromPatchLevelVec().
|
static |
Create an application ordering object (AO) that creates a mapping between global PETSc indices and mapping of SAMRAI data indices for patch data index dof_index_idx to a nonnegative integer on a SAMRAI::hier::PatchLevel.
ao_offset | An integer offset used for integer mapping of SAMRAI data indices. |
|
static |
Assign a DOF index to each unique degree of freedom on a SAMRAI::hier::PatchLevel.
The DOF indices generated by this method are compatible with the parallel PETSc Vec objects generated by constructPatchLevelVec().