petsc-3.3-p7 2013-05-11

VecGetThreadOwnershipRange

Returns the range of indices owned by this thread, assuming that the vectors are laid out with the first thread operating on the first n1 elements, next n2 elements by second, etc.

Synopsis

#include "petscvec.h" 
PetscErrorCode VecGetThreadOwnershipRange(Vec X,PetscInt thread_id,PetscInt *start,PetscInt *end)
Not thread collective

Input Parameter

X - the vector
thread_id - Thread number

Output Parameters

start - the first thread local element index, pass in PETSC_NULL if not interested
end - one more than the last thread local element index, pass in PETSC_NULL if not interested

Level:beginner
Location:
src/vec/vec/impls/seq/seqpthread/vecpthread.c
Index of all Vec routines
Table of Contents for all manual pages
Index of all manual pages