Vectors: Examples

PETSc vectors (Vec objects) are used to store the field variables in PDE-based (or other) simulations.

Beginner - Basic usage
ESICreateIndexSpace VecGetArray VecRestoreArrayF90
NormType VecGetArray1d VecScatter
PetscMapCreate VecGetArray2d VecSerialize
PetscMapSerialize VecGetArray3d VecSet
Vec VecGetArrayF90 VecSetFromOptions
VecAssemblyBegin VecGetLocalSize VecSetValue
VecAssemblyEnd VecGetOwnershipRange VecSetValues
VecCopy VecGetSize VecSqrt
VecCreate VecPermute VecSum
VecDestroy VecRestoreArray VecType
VecDestroyVecsF90 VecRestoreArray1d VecView
VecDuplicate VecRestoreArray2d
VecDuplicateVecsF90 VecRestoreArray3d
Intermediate - Setting options for algorithms and data structures
ESILoadFactory VecDuplicateVecs VecScatterCreate
PetscMapGetSerializeType VecESISetType VecScatterDestroy
PetscMapGetType VecESISetVector VecScatterEnd
PetscMapPrintHelp VecEqual VecScatterView
PetscMapSetFromOptions VecGetArrays VecSetLocalToGlobalMapping
PetscMapSetSerializeType VecGetSerializeType VecSetLocalToGlobalMappingBlock
PetscMapSetType VecGetType VecSetOption
VecAXPBY VecLoad VecSetRandom
VecAXPY VecLoadIntoVector VecSetSerializeType
VecAYPX VecMAXPY VecSetSizes
VecAbs VecMDot VecSetStashInitialSize
VecConjugate VecMTDot VecSetType
VecContourScale VecMax VecSetValuesBlocked
VecConvertMPIToMPIZero VecMin VecSetValuesBlockedLocal
VecConvertMPIToSeqAll VecNorm VecSetValuesLocal
VecCreateMPI VecNormalize VecShift
VecCreateMPIWithArray VecPrintHelp VecTDot
VecCreateSeq VecReciprocal VecViewFromOptions
VecCreateSeqWithArray VecRestoreArrays VecWAXPY
VecDestroyVecs VecScale
VecDot VecScatterBegin
Advanced - Setting more advanced options and customization
PetscMap VecGhostUpdateEnd VecStrideGather
PetscMapRegisterAll VecMaxPointwiseDivide VecStrideGatherAll
PetscMapRegisterDestroy VecNormBegin VecStrideMax
PetscMapRegisterDynamic VecNormEnd VecStrideMaxAll
PetscMapSerializeRegisterAll VecPointwiseDivide VecStrideMin
PetscMapSerializeRegisterDestroy VecPointwiseMult VecStrideMinAll
VecCreateGhost VecRegister VecStrideNorm
VecCreateGhostBlock VecRegisterAll VecStrideNormAll
VecCreateGhostBlockWithArray VecRegisterDestroy VecStrideScale
VecCreateGhostWithArray VecRegisterDynamic VecStrideScaleAll
VecCreateShared VecScatterCopy VecStrideScatter
VecDotBegin VecScatterPostRecvs VecStrideScatterAll
VecDotEnd VecSerializeRegisterAll VecSwap
VecGetBlockSize VecSerializeRegisterDestroy VecTDotBegin
VecGhostGetLocalForm VecSerializeRegisterDynamic VecTDotEnd
VecGhostRestoreLocalForm VecSetBlockSize Vecs
VecGhostUpdateBegin VecStashView
Developer - Interfaces intended primarily for library developers, not for typical applications programmers
PetscMapCreateMPI PetscMapGetSize VecPlaceArray
PetscMapDestroy PetscMapSetLocalSize VecReplaceArray
PetscMapGetGlobalRange PetscMapSetSize VecResetArray
PetscMapGetLocalRange VecGetPetscMap VecScatterRemap
PetscMapGetLocalSize VecInitializePackage VecValid

Table of Contents