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 VecDot VecScatterBegin
PetscMapGetSerializeType VecDuplicateVecs VecScatterCreate
PetscMapGetType VecESISetType VecScatterDestroy
PetscMapPrintHelp VecESISetVector VecScatterEnd
PetscMapSetFromOptions VecEqual VecScatterView
PetscMapSetSerializeType VecGetArrays VecSetLocalToGlobalMapping
PetscMapSetType VecGetSerializeType VecSetLocalToGlobalMappingBlock
VecAXPBY VecGetType VecSetOption
VecAXPY VecLoad VecSetRandom
VecAYPX VecLoadIntoVector VecSetSerializeType
VecAbs VecMAXPY VecSetSizes
VecConjugate VecMDot VecSetStashInitialSize
VecContourScale VecMTDot VecSetType
VecConvertMPIToMPIZero VecMax VecSetValuesBlocked
VecConvertMPIToSeqAll VecMin VecSetValuesBlockedLocal
VecCreateMPI VecNorm VecSetValuesLocal
VecCreateMPIWithArray VecPrintHelp VecShift
VecCreateSeq VecReciprocal VecTDot
VecCreateSeqWithArray VecRestoreArrays VecViewFromOptions
VecDestroyVecs VecScale VecWAXPY
Advanced - Setting more advanced options and customization
PetscMap VecGhostRestoreLocalForm VecSerializeRegisterDestroy
PetscMapRegisterAll VecGhostUpdateBegin VecSerializeRegisterDynamic
PetscMapRegisterDestroy VecGhostUpdateEnd VecSetBlockSize
PetscMapRegisterDynamic VecMaxPointwiseDivide VecStashView
PetscMapSerializeRegisterAll VecNormBegin VecStrideGather
PetscMapSerializeRegisterDestroy VecNormEnd VecStrideGatherAll
VecCreateGhost VecPointwiseDivide VecStrideMax
VecCreateGhostBlock VecPointwiseMult VecStrideMin
VecCreateGhostBlockWithArray VecRegister VecStrideNorm
VecCreateGhostWithArray VecRegisterAll VecStrideScatter
VecCreateShared VecRegisterDestroy VecStrideScatterAll
VecDotBegin VecRegisterDynamic VecSwap
VecDotEnd VecScatterCopy VecTDotBegin
VecGetBlockSize VecScatterPostRecvs VecTDotEnd
VecGhostGetLocalForm VecSerializeRegisterAll Vecs
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