PETSc Help Index

| A | C | D | E | F | G | H | I | L | M | N | P | S | T | U | V |


AOData

using an AOData database for grid informationReads an AODatabase and displays the key and segment names

| A | C | D | E | F | G | H | I | L | M | N | P | S | T | U | V |


complex numberssles/ex11f.F

Solves a linear system in parallel with SLES

| A | C | D | E | F | G | H | I | L | M | N | P | S | T | U | V |


DA

using distributed arraysBratu nonlinear PDE in 2d

Bratu nonlinear PDE in 3d

Grad-Shafranov solver for one dimensional CHI equilibrium

Nonlinear driven cavity with multigrid in 2d

Nonlinear Radiative Transport PDE with multigrid in 2d

Nonlinear Radiative Transport PDE with multigrid in 3d

sles/ex14f.F

snes/ex25.c

snes/ex5f.F

snes/ex5f90.F

XXXXX with multigrid and timestepping 2d

dynamic librariesPrints loadable objects from dynamic library

| A | C | D | E | F | G | H | I | L | M | N | P | S | T | U | V |


error handling

using the macro __FUNCT__ to define routine namesNewton methods to solve u'' + u^{2} = f in parallel

Using the macro __FUNCT__ to define routine namesSolves a linear system in parallel with SLES

ESI

basic parallel exampleSolves a linear system in parallel with ESI

Laplacian, 1dSolves a linear system in parallel with ESI

| A | C | D | E | F | G | H | I | L | M | N | P | S | T | U | V |


Fortran90

accessing indices in index setvec/is/ex3f90.F

accessing indices of index setvec/is/ex1f90.F

assembling vectorsvec/ex4f90.F

using basic vector routinesvec/ex1f90.F

| A | C | D | E | F | G | H | I | L | M | N | P | S | T | U | V |


global to local mappingsDemonstrates using ISLocalToGlobalMappings

| A | C | D | E | F | G | H | I | L | M | N | P | S | T | U | V |


Helmholtz equationSolves a linear system in parallel with SLES

| A | C | D | E | F | G | H | I | L | M | N | P | S | T | U | V |


index sets

accessing indices from Fortranvec/is/ex2f.F

creating a block index setDemonstrates creating a blocked index set

creating a stride index setDemonstrates creating a stride index set

creating generalCreating a general index set

manipulating a block index setvec/is/ex3f90.F

manipulating a general index setCreating a general index set

vec/is/ex1f.F

vec/is/ex1f90.F

manipulating a stride index setvec/is/ex2f.F

introduction to PETScIntroductory example that illustrates printing

Synchronized printing

IS

creating a block index setDemonstrates creating a blocked index set

creating a general index setCreating a general index set

creating a stride index setDemonstrates creating a stride index set

| A | C | D | E | F | G | H | I | L | M | N | P | S | T | U | V |


Laplacian, 1dSolves a linear system in parallel with ESI

Laplacian, 2dsles/ex13f90.F

Solves a linear system in parallel with SLES

Solves a sequence of linear systems with different right-hand-side vectors

Solves a variable Poisson problem with SLES

local to global mappingsDemonstrates using ISLocalToGlobalMappings

| A | C | D | E | F | G | H | I | L | M | N | P | S | T | U | V |


Mat

loading a binary matrix and vectorReads a PETSc matrix and vector from a file and reorders it

ordering a matrix - loading a binary matrix and vectorReads a PETSc matrix and vector from a file and reorders it

partitioning a matrixReads a a simple unstructured grid from a file

mathematical functionsDemonstrates various vector routines

Matrices

inserting elements by blocksSolves a linear system in parallel with SLES

matrix-free methodsu`` + u^{2} = f

multicomponentNonlinear driven cavity with multigrid in 2d

XXXXX with multigrid and timestepping 2d

multigridNonlinear Radiative Transport PDE with multigrid in 2d

Nonlinear Radiative Transport PDE with multigrid in 3d

snes/ex25.c

| A | C | D | E | F | G | H | I | L | M | N | P | S | T | U | V |


nonlinear problemsSolves the time dependent Bratu problem using pseudo-timestepping

ts/ex1f.F

Normal equationsReads a PETSc matrix and vector from a file and solves the normal equations

| A | C | D | E | F | G | H | I | L | M | N | P | S | T | U | V |


PC

registering preconditionersSolves a linear system in parallel with SLES

setting a user-defined shell preconditionersles/ex15f.F

sles/ex21f.F

Solves a linear system in parallel with SLES

PetscLog

activating/deactivating events for profilingAugmenting PETSc profiling by add events

activating/deactivating events for profiling (basic example)sys/ex3f.F

preloading executableReads a PETSc matrix and vector from a file and reorders it

profiling multiple stages of codeSolves two linear systems in parallel with SLES

The solution of 2 different linear systems with different linear solvers

user-defined event profilingAugmenting PETSc profiling by add events

The solution of 2 different linear systems with different linear solvers

user-defined event profiling (basic example)sys/ex3f.F

printf

in parallelSynchronized printing

synchronizedSynchronized printing

printing

in parallelIntroductory example that illustrates printing

Synchronized printing

synchronizedSynchronized printing

profiling

activating/deactivating eventsAugmenting PETSc profiling by add events

user-defined eventAugmenting PETSc profiling by add events

pseudo-timesteppingSolves the time dependent Bratu problem using pseudo-timestepping

ts/ex1f.F

| A | C | D | E | F | G | H | I | L | M | N | P | S | T | U | V |


shared memory2d Bratu problem in shared memory parallel with SNES

SLES

Additive Schwarz Method (ASM) with user-defined subdomainsIllustrates use of the preconditioner ASM

basic parallel examplesles/ex15f.F

sles/ex21f.F

sles/ex2f.F

Solves a linear system in parallel with SLES

Solves a tridiagonal linear system

basic sequential examplesles/ex13f90.F

Solves a variable Poisson problem with SLES

customizing the block Jacobi preconditionerBlock Jacobi preconditioner for solving a linear system in parallel with SLES

different matrices for linear system and preconditionersles/ex6f.F

Uses a different preconditioner matrix and linear system matrix in the SLES solvers

Laplacian, 2dsles/ex13f90.F

Solves a linear system in parallel with SLES

Solves a sequence of linear systems with different right-hand-side vectors

Solves a variable Poisson problem with SLES

repeatedly solving linear systemssles/ex6f.F

Solves a sequence of linear systems with different right-hand-side vectors

Solves two linear systems in parallel with SLES

The solution of 2 different linear systems with different linear solvers

setting a user-defined monitoring routinesles/ex2f.F

solving a Helmholtz equationsles/ex11f.F

Solves a linear system in parallel with SLES

solving a linear systemReads a PETSc matrix and vector from a file and solves a linear system

Reads a PETSc matrix and vector from a file and solves the normal equations

solving a system of linear equationssles/ex1f.F

Solves a linear system in parallel with SLES

Solves a tridiagonal linear system with SLES

writing a user-defined nonlinear solversles/ex14f.F

SNES

basic parallel exampleNewton methods to solve u'' + u^{2} = f in parallel

basic uniprocessor exampleNewton method to solve u'' + u^{2} = f, sequentially

Newton's method to solve a two-variable system, sequentially

snes/ex1f.F

different matrices for the Jacobian and preconditioneru`` + u^{2} = f

matrix-free methodsu`` + u^{2} = f

parallel Bratu example2d Bratu problem in shared memory parallel with SNES

Bratu nonlinear PDE in 2d

Bratu nonlinear PDE in 3d

snes/ex5f.F

snes/ex5f90.F

parallel CHI equilibriumGrad-Shafranov solver for one dimensional CHI equilibrium

setting a user-defined monitoring routineNewton method to solve u'' + u^{2} = f, sequentially

Newton methods to solve u'' + u^{2} = f in parallel

solving a system of nonlinear equationsNonlinear Radiative Transport PDE with multigrid in 2d

Nonlinear Radiative Transport PDE with multigrid in 3d

snes/ex25.c

solving a system of nonlinear equations (parallel multicomponent example)Nonlinear driven cavity with multigrid in 2d

XXXXX with multigrid and timestepping 2d

user-provided preconditioneru`` + u^{2} = f

stride

creating a stride index setDemonstrates creating a stride index set

| A | C | D | E | F | G | H | I | L | M | N | P | S | T | U | V |


TS

diffusion equationSolves a simple time-dependent linear PDE (the heat equation)

heat equationSolves a simple time-dependent linear PDE (the heat equation)

pseudo-timesteppingSolves the time dependent Bratu problem using pseudo-timestepping

ts/ex1f.F

time-dependent linear problemsSolves a simple time-dependent linear PDE (the heat equation)

time-dependent nonlinear problemsSolves a time-dependent nonlinear PDE

ts/ex2f.F

| A | C | D | E | F | G | H | I | L | M | N | P | S | T | U | V |


user-provided preconditioneru`` + u^{2} = f

| A | C | D | E | F | G | H | I | L | M | N | P | S | T | U | V |


vectors

arraysvec/ex4f90.F

arrays of vectorsvec/ex4f.F

assemblingvec/ex2f.F

vec/ex4f.F

assembling vectorsBuilds a parallel vector with 1 component on the firstprocessor, 2 on the second, etc

Demonstrates use of VecCreateGhost()

Tests PetscObjectPublish()

vec/ex14f.F

vec/ex4f90.F

vec/ex9f.F

assembling vectors with local orderingDemonstrates using a local ordering to set values into a parallel vector

basic routinesBasic vector routines

Demonstrates the AMS Memory Snooper viewing

Demonstrates various vector routines

vec/ex1f.F

drawing vectorsParallel vector layout

vec/ex3f.F

ghost paddingDemonstrates use of VecCreateGhost()

vec/ex14f.F

vec/ex9f.F

local access toParallel vector layout

norms of sub-vectorsDemonstrates VecStrideNorm()

vec/ex11f.F

setting valuesParallel vector layout

sub-vectorsDemonstrates VecStrideScatter() and VecStrideGather()

using basic vector routinesvec/ex1f90.F

Vectors

loading a binary vectorReads a PETSc matrix and vector from a file and reorders it