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

Table of Contents