petsc-3.3-p7 2013-05-11

Vectors: Examples

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

Beginner - Basic usage
NORM_1_AND_2 VecDuplicateVecsF90 VecRestoreArray4d
NORM_1 VecExp VecRestoreArrayF90
NORM_2 VecGetArray4d VecRestoreArray
NORM_FROBENIUS VecGetArrayF90 VecScatter
NORM_INFINITY VecGetArray VECSEQCUSP
NORM_MAX VecGetLocalSize VECSEQ
NormType VecGetOwnershipRange VecSetFromOptions
SCATTER_FORWARD VecGetOwnershipRanges VecSet
ScatterMode VecGetSize VecSetValue
SCATTER_REVERSE VecGetThreadOwnershipRange VecSetValueLocal
VecAssemblyBegin VecGetValues VecSetValues
VecAssemblyEnd Vec VecSqrtAbs
VecCopy VecLog VECSTANDARD
VecCreate VECMPICUSP VecSum
VecDestroy VECMPI VecType
VecDestroyVecsF90 VECMPIPTHREAD VecView
VecDuplicate VecPermute VecZeroEntries
Intermediate - Setting options for algorithms and data structures
PetscSFCreateSectionSF VecGetType VecScatterFinalizeForGPU
PetscSFDistributeSection VecLoad VecScatterInitializeForGPU
VecAbs VecMax VecScatterView
VecAXPBY VecMAXPY VECSEQPTHREAD
VecAXPBYPCZ VecMDot VecSetLocalToGlobalMappingBlock
VecAXPY VecMin VecSetLocalToGlobalMapping
VecAYPX VecMTDot VecSetNThreads
VecConjugate VECNEST VecSetOption
VecContourScale VecNormalize VecSetRandom
VecCreateMPI VecNormAvailable VecSetSizes
VecCreateMPIPThread VecNorm VecSetThreadAffinities
VecCreateMPIWithArray VECPTHREAD VecSetType
VecCreateSeqCUSP VecReciprocal VecSetValuesBlocked
VecCreateSeq VecRestoreArrays VecSetValuesBlockedLocal
VecCreateSeqPThread VecScale VecSetValuesLocal
VecCreateSeqWithArray VecScatterBegin VecShift
VecDestroyVecs VecScatterCreate VecStashSetInitialSize
VecDot VecScatterCreateLocal VecTDot
VecDuplicateVecs VecScatterCreateToAll VecViewFromOptions
VecEqual VecScatterCreateToZero VecWAXPY
VecGetArrays VecScatterDestroy
VecGetNThreads VecScatterEnd
Advanced - Setting more advanced options and customization
PetscCommSplitReductionBegin VecMDotBegin Vecs
VecAppendOptionsPrefix VecMDotEnd VecStashGetInfo
VecCreateGhostBlock VecMPISetGhost VecStashView
VecCreateGhostBlockWithArray VecMTDotBegin VecStrideGatherAll
VecCreateGhost VecMTDotEnd VecStrideGather
VecCreateGhostWithArray VecNormBegin VecStrideMaxAll
VecCreateNest VecNormEnd VecStrideMax
VecCreateShared VecPointwiseDivide VecStrideMinAll
VecDotBegin VecPointwiseMaxAbs VecStrideMin
VecDotEnd VecPointwiseMax VecStrideNormAll
VecDotNorm2 VecPointwiseMin VecStrideNorm
VecGetBlockSize VecPointwiseMult VecStrideScaleAll
VecGetLocalToGlobalMappingBlock VecRegisterAll VecStrideScale
VecGetLocalToGlobalMapping VecRegisterDestroy VecStrideScatterAll
VecGetOptionsPrefix VecRegisterDynamic VecStrideScatter
VecGetSubVector VecRegister VecStrideSet
VecGhostGetLocalForm VecRestoreSubVector VecSwap
VecGhostRestoreLocalForm VecScatterCopy VecTDotBegin
VecGhostUpdateBegin VecSetBlockSize VecTDotEnd
VecGhostUpdateEnd VecSetOptionsPrefix
VecMaxPointwiseDivide VecSetUp
Developer - Interfaces intended primarily for library developers, not for typical applications programmers
ISFinalizePackage PetscLayoutSetISLocalToGlobalMappingBlock VecInitializePackage
ISInitializePackage PetscLayoutSetISLocalToGlobalMapping VecNestGetSize
PetscCUSPFlag PetscLayoutSetLocalSize VecNestGetSubVec
PetscLayoutCreate PetscLayoutSetSize VecNestGetSubVecs
PetscLayoutDestroy PetscLayoutSetUp VecNestSetSubVec
PetscLayoutDuplicate PetscSectionCreate VecNestSetSubVecs
PetscLayoutFindOwner PetscSectionDestroy VecPlaceArray
PetscLayoutGetBlockSize PetscSection VecReplaceArray
PetscLayoutGetLocalSize PetscThreadsLayout VecResetArray
PetscLayoutGetRange SCATTER_FORWARD_LOCAL VecRestoreArray1d
PetscLayoutGetRanges SCATTER_REVERSE_LOCAL VecRestoreArray2d
PetscLayoutGetSize VecFinalizePackage VecRestoreArray3d
PetscLayout VecGetArray1d VecScatterGetMerged
PetscLayoutReference VecGetArray2d VecScatterRemap
PetscLayoutSetBlockSize VecGetArray3d
No deprecated routines

Table of Contents