#include "petscdm.h" #include "petscdmlabel.h" #include "petscds.h" PetscErrorCode DMCreate(MPI_Comm comm,DM *dm)If you never call DMSetType() it will generate an error when you try to use the vector.
Collective
comm | - The communicator for the DM object |
dm | - The DM object |