Creates a new parallel vector whose arrays are stored in shared memory


#include "petscvec.h"   
#include "petscvec.h"   
PetscErrorCode VecCreateNode(MPI_Comm comm,PetscInt n,PetscInt N,Vec *v)
Collective on Vec

Input Parameter

comm - Communicator for the new Vec
n - local vector length (or PETSC_DECIDE to have calculated if N is given)
N - global vector length (or PETSC_DETERMINE to have calculated if n is given)

Output Parameter

v - new vector

Level: advanced

See Also

VecCreate(), VecType(), VecCreateMPIWithArray(), VECNODE