#include "petscdmsliced.h" PetscErrorCode DMSlicedCreate(MPI_Comm comm,PetscInt bs,PetscInt nlocal,PetscInt Nghosts,const PetscInt ghosts[], const PetscInt d_nnz[],const PetscInt o_nnz[],DM *dm)Collective
comm | - the processors that will share the global vector | |
bs | - the block size | |
nlocal | - number of vector entries on this process | |
Nghosts | - number of ghost points needed on this process | |
ghosts | - global indices of all ghost points for this process | |
d_nnz | - matrix preallocation information representing coupling within this process | |
o_nnz | - matrix preallocation information representing coupling between this process and other processes |
slice | - the slice object |
One can use DMGlobalToLocalBegin(), and DMGlobalToLocalEnd() instead of VecGhostUpdateBegin() and VecGhostUpdateEnd().