petsc-3.3-p7 2013-05-11

PETSc Help Index

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


bagsdm/ex7.c

sys/ex5.c

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


complex numbersksp/ksp/ex11f.F

Solves a linear system in parallel with KSP

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


differential-algebraic equationTransient nonlinear driven cavity in 2d

DM

using distributed arraysNonlinear Radiative Transport PDE with multigrid in 3d

Solves a linear system in parallel with KSP and DM

DMDA

using distributed arrays-Laplacian u = b as a nonlinear problem

Bratu nonlinear PDE in 2d

Bratu nonlinear PDE in 3d

ksp/ksp/ex14f.F

Minimum surface problem in 2D

Nonlinear driven cavity with multigrid in 2d

Nonlinear PDE in 2d

Nonlinear Radiative Transport PDE with multigrid in 2d

snes/ex5f.F

snes/ex5f90.F

snes/ex5f90t.F

Surface processes in geophysics

Transient nonlinear driven cavity in 2d

DMMESH

using unstructured gridsBratu nonlinear PDE in 2d

| B | C | D | E | F | G | H | I | K | L | M | N | O | 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 KSP

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


Fortran90

accessing indices in index setvec/is/ex3f90.F

accessing indices of index setvec/is/ex1f90.F

assembling vectorsvec/vec/ex4f90.F

using basic vector routinesvec/vec/ex1f90.F

vec/vec/ex20f90.F90

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


global to local mappingsDemonstrates using ISLocalToGlobalMappings

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


HDF5dm/ex9.c

Helmholtz equationSolves a linear system in parallel with KSP

| B | C | D | E | F | G | H | I | K | L | M | N | O | 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 PETScDemonstrates using PetscWebServe()

Introductory example that illustrates printing

Introductory example that illustrates running PETSc on a subset of processes

Synchronized printing

sys/ex4f.F

sys/ex4f90.F90

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

IS coloirng types-Laplacian u = b as a nonlinear problem

Bratu nonlinear PDE in 2d

Surface processes in geophysics

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


KSP

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

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

basic parallel exampleksp/ksp/ex15f.F

ksp/ksp/ex21f.F

ksp/ksp/ex2f.F

Solves a linear system in parallel with KSP

Solves a linear system in parallel with KSP and DM

Solves a tridiagonal linear system

basic sequential exampleksp/ksp/ex13f90.F

Solves a variable Poisson problem with KSP

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

different matrices for linear system and preconditionerksp/ksp/ex6f.F

Laplacian, 2dksp/ksp/ex13f90.F

Solves 2D inhomogeneous Laplacian using multigrid

Solves a linear system in parallel with KSP

Solves a linear system in parallel with KSP and DM

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

Solves a variable Poisson problem with KSP

Laplacian, 3dSolves 3D Laplacian using multigrid

repeatedly solving linear systemsksp/ksp/ex6f.F

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

Solves two linear systems in parallel with KSP

The solution of 2 different linear systems with different linear solvers

semi-implicitSolves 2D compressible Euler using multigrid

setting a user-defined monitoring routineksp/ksp/ex2f.F

solving a Helmholtz equationksp/ksp/ex11f.F

Solves a linear system in parallel with KSP

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

Reads a PETSc matrix and vector from a socket connection, solves a linear system and sends the result back

solving a system of linear equationsksp/ksp/ex1f.F

ksp/ksp/ex54f.F

Solves 2D compressible Euler using multigrid

Solves 2D inhomogeneous Laplacian using multigrid

Solves 3D Laplacian using multigrid

Solves a linear system in parallel with KSP

Solves a tridiagonal linear system with KSP

writing a user-defined nonlinear solverksp/ksp/ex14f.F

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


Laplacian, 2dksp/ksp/ex13f90.F

Solves a linear system in parallel with KSP

Solves a linear system in parallel with KSP and DM

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

Solves a variable Poisson problem with KSP

local to global mappingsDemonstrates using ISLocalToGlobalMappings

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


Mat

composite matricesmat/ex9.c

image segmentationmat/ex15.c

mat/ex17.c

loading a binary matrixmat/ex10.c

loading a binary matrix and vectormat/ex12.c

Reads a PETSc matrix and vector from a file and reorders it

mat partitioningmat/ex15.c

mat/ex17.c

mesh partitioningmat/ex11.c

ordering a matrix - loading a binary matrix and vectormat/ex12.c

Reads 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 KSP

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

multicomponentNonlinear driven cavity with multigrid in 2d

Transient nonlinear driven cavity in 2d

multigridMinimum surface problem in 2D

Nonlinear Radiative Transport PDE with multigrid in 2d

Nonlinear Radiative Transport PDE with multigrid in 3d

| B | C | D | E | F | G | H | I | K | L | M | N | O | 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

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


optimization, likely, unlikelyExample of using PetscLikely() and PetscUnlikely()

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


PC

registering preconditionersSolves a linear system in parallel with KSP

setting a user-defined shell preconditionerksp/ksp/ex15f.F

ksp/ksp/ex21f.F

Solves a linear system in parallel with KSP

PetscLog

activating/deactivating events for profilingAugmenting PETSc profiling by add events

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

preloading executablemat/ex12.c

Reads a PETSc matrix and vector from a file and reorders it

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

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

PetscThreadComm

basic exampleTest PetscThreadComm Interface

basic example: Threaded reductions and passing scalar valuesTest to demonstrate interface for thread reductions and passing scalar values

printf

in parallelSynchronized printing

synchronizedSynchronized printing

printing

in parallelDemonstrates using PetscWebServe()

Introductory example that illustrates printing

Synchronized printing

synchronizedSynchronized printing

process

subset set PETSC_COMM_WORLDIntroductory example that illustrates running PETSc on a subset of processes

sys/ex4f.F

sys/ex4f90.F90

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

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


shared memory2d Bratu problem in shared memory parallel with SNES

SNES

basic exampleNewton's method for a two-variable system, sequential

Newton's method to solve a two-variable system that comes from the Rosenbrock function

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

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

snes/ex1f.F

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

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

parallel Bratu example-Laplacian u = b as a nonlinear problem

2d Bratu problem in shared memory parallel with SNES

Bratu nonlinear PDE in 2d

Bratu nonlinear PDE in 3d

Nonlinear PDE in 2d

snes/ex5f.F

snes/ex5f90.F

snes/ex5f90t.F

parallel Lane-Emden exampleNonlinear PDE in 2d

parallel Stokes exampleNonlinear PDE in 2d

parallel Surface process exampleSurface processes in geophysics

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 equationsMinimum surface problem in 2D

Nonlinear Radiative Transport PDE with multigrid in 2d

Nonlinear Radiative Transport PDE with multigrid in 3d

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

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

stride

creating a stride index setDemonstrates creating a stride index set

| B | C | D | E | F | G | H | I | K | L | M | N | O | 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

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

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

time-dependent nonlinear problemsSolves a time-dependent nonlinear PDE

Solves a time-dependent nonlinear PDE with lower and upper bounds on the interior grid points

Solves the van der Pol DAE

Solves the van der Pol equation

ts/ex2f.F

van der Pol DAESolves the van der Pol DAE

van der Pol equationSolves the van der Pol equation

van der Pol equation DAE equivalentSolves the van der Pol equation

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


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

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


Vectors

loading a binary vectormat/ex12.c

Reads a PETSc matrix and vector from a file and reorders it

vectors

arraysvec/vec/ex4f90.F

arrays of vectorsvec/vec/ex4f.F

assemblingvec/vec/ex2f.F

vec/vec/ex4f.F

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

Computes the integral of 2*x/(1+x^2) from x=0

Demonstrates use of VecCreateGhost()

vec/vec/ex14f.F

vec/vec/ex4f90.F

vec/vec/ex9f.F

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

basic routinesBasic vector routines

vec/vec/ex1f.F

drawing vectorsParallel vector layout

vec/vec/ex3f.F

ghost paddingDemonstrates use of VecCreateGhost()

vec/vec/ex14f.F

vec/vec/ex9f.F

local access toParallel vector layout

norms of sub-vectorsDemonstrates VecStrideNorm()

vec/vec/ex11f.F

setting valuesParallel vector layout

sub-vectorsDemonstrates VecStrideScatter() and VecStrideGather()

Demonstrates VecStrideScatter() and VecStrideGather() with subvectors that are also strided

using basic vector routinesvec/vec/ex1f90.F

vec/vec/ex20f90.F90

viewingParallel HDF5 Vec Viewing

Viewer, appendAppends to an ASCII file

viewersdm/ex7.c

dm/ex9.c

hdf5Parallel HDF5 Vec Viewing