Vectors:
Examples
PETSc vectors (Vec objects) are used to store the field variables in PDE-based (or other) simulations.
Beginner - Basic usage
InsertMode
VecDuplicateVecsF90
VecRestoreArray2d
NormType
VecGetArray
VecRestoreArray3d
ScatterMode
VecGetArray1d
VecRestoreArrayF90
Vec
VecGetArray2d
VecScatter
VecAssemblyBegin
VecGetArray3d
VecSet
VecAssemblyEnd
VecGetArrayF90
VecSetValue
VecCopy
VecGetLocalSize
VecSetValues
VecCreate
VecGetOwnershipRange
VecSum
VecDestroy
VecGetSize
VecType
VecDestroyVecsF90
VecRestoreArray
VecView
VecDuplicate
VecRestoreArray1d
Intermediate - Setting options for algorithms and data structures
VecAXPBY
VecGetType
VecScatterEnd
VecAXPY
VecLoad
VecScatterView
VecAYPX
VecLoadIntoVector
VecSetLocalToGlobalMapping
VecAbs
VecMAXPY
VecSetLocalToGlobalMappingBlock
VecConjugate
VecMDot
VecSetOption
VecContourScale
VecMTDot
VecSetRandom
VecCreateMPI
VecMax
VecSetStashInitialSize
VecCreateMPIWithArray
VecMin
VecSetType
VecCreateSeq
VecNorm
VecSetValuesBlocked
VecCreateSeqWithArray
VecReciprocal
VecSetValuesBlockedLocal
VecDestroyVecs
VecRestoreArrays
VecSetValuesLocal
VecDot
VecScale
VecShift
VecDuplicateVecs
VecScatterBegin
VecStrideMin
VecEqual
VecScatterCreate
VecTDot
VecGetArrays
VecScatterDestroy
VecWAXPY
Advanced - Setting more advanced options and customization
Map
VecGhostUpdateBegin
VecSetBlockSize
VecCreateGhost
VecGhostUpdateEnd
VecStashView
VecCreateGhostBlock
VecNormBegin
VecStrideGather
VecCreateGhostBlockWithArray
VecNormEnd
VecStrideGatherAll
VecCreateGhostWithArray
VecPointwiseDivide
VecStrideMax
VecCreateShared
VecPointwiseMult
VecStrideNorm
VecDotBegin
VecRegisterAll
VecStrideScatter
VecDotEnd
VecRegisterDestroy
VecStrideScatterAll
VecGetBlockSize
VecRegisterDynamic
VecSwap
VecGhostGetLocalForm
VecScatterCopy
VecTDotBegin
VecGhostRestoreLocalForm
VecScatterPostRecvs
VecTDotEnd
Developer - Interfaces intended primarily for library developers, not for typical applications programmers
MapCreateMPI
MapGetSize
VecScatterRemap
MapDestroy
VecGetMap
VecSetFromOptions
MapGetGlobalRange
VecPlaceArray
VecValid
MapGetLocalRange
VecReplaceArray
MapGetLocalSize
VecResetArray
Table of Contents