petsc-3.3-p7 2013-05-11

VecSetNThreads

Set the number of threads to be used for vector operations.

Synopsis

#include "petscvec.h" 
PetscErrorCode VecSetNThreads(Vec v,PetscInt nthreads)
Input Parameters
v - the vector
nthreads - number of threads

Note

Use nthreads = PETSC_DECIDE for PETSc to determine the number of threads.

Options Database keys

-vec_threads <nthreads> - Number of threads

See Also

VecCreateSeqPThread(), VecGetNThreads()

Level:intermediate
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