Function opensn::CreateVector(Vec&, PetscInt, PetscInt)
Defined in File petsc_utils.h
Function Documentation
-
void opensn::CreateVector(Vec &x, PetscInt local_size, PetscInt global_size)
Creates a general vector.
This is a function for:
VecCreate(opensn::mpi_comm,&x); VecSetType(x,VECMPI); VecSetSizes(x, local_size, global_size); VecSetOption(x,VEC_IGNORE_NEGATIVE_INDICES,PETSC_TRUE);