petsc-3.3-p7 2013-05-11

MatSetNThreads

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

Synopsis

#include "petscmat.h" 
PetscErrorCode MatSetNThreads(Mat A,PetscInt nthreads)
Not Collective, but it is usually desirable to use the same number of threads per process

Input Parameters

A - the matrix
nthreads - number of threads

See Also

MatCreateSeqAIJPThread()

Level:intermediate
Location:
src/mat/impls/aij/seq/seqpthread/seqaijpthread.c
Index of all Mat routines
Table of Contents for all manual pages
Index of all manual pages