petsc-3.7.1 2016-05-15
Report Typos and Errors

VecStashSetInitialSize

sets the sizes of the vec-stash, that is used during the assembly process to store values that belong to other processors.

Synopsis

#include "petscvec.h"   
PetscErrorCode  VecStashSetInitialSize(Vec vec,PetscInt size,PetscInt bsize)
Not Collective, different processes can have different size stashes Many br

Input Parameters

vec - the vector Many br
size - the initial size of the stash. Many br
bsize - the initial size of the block-stash(if used). Many br

Options Database Keys

-vecstash_initial_size <size> or <size0,size1,...sizep- 1> Many br
-vecstash_block_initial_size <bsize> or <bsize0,bsize1,...bsizep- 1> Many br

Many br

Notes

The block-stash is used for values set with VecSetValuesBlocked() while Many brthe stash is used for values set with VecSetValues() Many br

Run with the option -info and look for output of the form Many brVecAssemblyBegin_MPIXXX:Stash has MM entries, uses nn mallocs. Many brto determine the appropriate value, MM, to use for size and Many brVecAssemblyBegin_MPIXXX:Block-Stash has BMM entries, uses nn mallocs. Many brto determine the value, BMM to use for bsize Many br

See Also

VecSetBlockSize(), VecSetValues(), VecSetValuesBlocked(), VecStashView()

Level:intermediate
Location:
src/vec/vec/interface/vector.c
Index of all Vec routines
Table of Contents for all manual pages
Index of all manual pages