petsc-3.3-p7 2013-05-11


Creates a parallel vector using posix threads.


#include "petscvec.h"  
PetscErrorCode VecCreateMPIPThread(MPI_Comm comm,PetscInt n,PetscInt N,PetscInt nthreads,PetscInt affinities[],Vec *v)
Collective on MPI_Comm

Input Parameters

comm - the MPI communicator to use
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)
nthreads - Number of local threads (or PETSC_DECIDE to have nthreads calculated)
affinities - Local thread affinities (or PETSC_NULL for PETSc to set affinities)

Output Parameter

vv -the vector


Use VecDuplicate() or VecDuplicateVecs() to form additional vectors of the same type as an existing vector.

See Also

VecCreateSeqPThread(), VecCreate(), VecDuplicate(), VecDuplicateVecs()

Index of all Vec routines
Table of Contents for all manual pages
Index of all manual pages