petsc-3.14.6 2021-03-30
Report Typos and Errors

PETSc Help Index

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


adjointstao/unconstrained/spectraladjointassimilation.c

All at once approach to sensitivity trackingts/ex20td.c

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


bagsdm/ex7.c

sys/ex5.c

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


complex numbersksp/ksp/ex11f.F90

Solves a linear system in parallel with KSP

Customized adjoint monitor based sensitivity trackingts/ex20td.c

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


DM

using distributed arraysSolves 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.F90

Minimum surface problem in 2D

Nonlinear driven cavity with multigrid in 2d

Nonlinear Radiative Transport PDE with multigrid in 2d

snes/ex5f.F90

snes/ex5f90.F90

snes/ex5f90t.F90

Surface processes in geophysics

Transient nonlinear driven cavity in 2d

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


Fortran90

accessing indices in index setvec/is/is/ex3f90.F90

accessing indices of index setvec/is/is/ex1f90.F90

assembling vectorsvec/vec/ex4f90.F90

using basic vector routinesvec/vec/ex1f90.F90

vec/vec/ex20f90.F90

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


global to local mappingsDemonstrates using ISLocalToGlobalMappings

Demonstrates using ISLocalToGlobalMappings with block size

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


HDF5dm/ex9.c

Helmholtz equationSolves a linear system in parallel with KSP

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


index sets

accessing indices from Fortranvec/is/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/is/ex3f90.F90

manipulating a general index setCreating a general index set

vec/is/is/ex1f.F

vec/is/is/ex1f90.F90

manipulating a stride index setvec/is/is/ex2f.F

introduction to PETScDemonstrates PetscGetVersonNumber()

Illustrates creating an options database

Introductory example that illustrates printing

Introductory example that illustrates running PETSc on a subset of processes

sys/ex16.c

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

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


KSPksp/ksp/ex74.c

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

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

Illustrates use of the preconditioner GASM

basic parallel exampleBilinear elements on the unit square for Laplacian

ksp/ksp/ex10.c

ksp/ksp/ex15f.F90

ksp/ksp/ex2f.F90

ksp/ksp/ex67.c

Solves a (permuted) linear system in parallel with KSP

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.F90

Solves a variable Poisson problem with KSP

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

ksp/ksp/ex7f.F90

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

Laplacian, 2dksp/ksp/ex12.c

ksp/ksp/ex13f90.F90

Solves 2D inhomogeneous Laplacian

Solves 2D inhomogeneous Laplacian using multigrid

Solves a (permuted) linear system in parallel with KSP

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/ex5f.F90

ksp/ksp/ex6f.F90

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

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

solving a Helmholtz equationksp/ksp/ex11f.F90

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/ex12.c

ksp/ksp/ex1f.F90

ksp/ksp/ex54f.F90

Solves 2D inhomogeneous Laplacian

Solves 2D inhomogeneous Laplacian using multigrid

Solves 3D Laplacian using multigrid

Solves a tridiagonal linear system with KSP

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

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


Laplacian, 2dksp/ksp/ex13f90.F90

Solves a (permuted) linear system in parallel with KSP

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

Demonstrates using ISLocalToGlobalMappings with block size

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


Mat

composite matricesmat/ex9.c

image segmentationmat/ex15.c

mat/ex17.c

loading a binary matrixmat/ex10.c

loading a binary matrix and vectorksp/ksp/ex10.c

mat/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

MATksp/ksp/ex74.c

mathematical functionsDemonstrates various vector routines for DMDA

MATKAIJksp/ksp/ex74.c

MatNestsnes/ex73f90t.F90

Matrices

inserting elements by blocksBilinear elements on the unit square for Laplacian

multicomponentNonlinear driven cavity with multigrid in 2d

multigridMinimum surface problem in 2D

Nonlinear Radiative Transport PDE with multigrid in 2d

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


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

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


optimization

likelyExample of using PetscLikely() and PetscUnlikely()

unlikelyExample of using PetscLikely() and PetscUnlikely()

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


PC

registering preconditionersksp/ksp/ex12.c

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

Solves a linear system in parallel with KSP

periodic boundary conditionsksp/ksp/ex67.c

Newton methods to solve u'' = f in parallel with periodic boundary conditions

petsc

introductionSynchronized printing

PetscLog

activating/deactivating events for profilingAugmenting PETSc profiling by add events

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

sys/logging/ex1f.F90

preloading executableksp/ksp/ex10.c

mat/ex12.c

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

profiling multiple stages of codeksp/ksp/ex5f.F90

Solves 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

sys/logging/ex1f.F90

printf

in parallelSynchronized printing

synchronizedSynchronized printing

printing

in parallelIllustrates creating an options database

Introductory example that illustrates printing

Synchronized printing

sys/ex16.c

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

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


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'' = f in parallel with periodic boundary conditions

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

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

snes/ex1f.F90

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

Bratu nonlinear PDE in 2d

Bratu nonlinear PDE in 3d

snes/ex5f.F90

snes/ex5f90.F90

snes/ex5f90t.F90

snes/ex73f90t.F90

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

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

stride

creating a stride index setDemonstrates creating a stride index set

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


TAO

Solving a bound constrained minimization problemtao/bound/jbearing2.c

tao/bound/plate2.c

tao/bound/plate2f.F90

Solving a complementarity problemtao/complementarity/blackscholes.c

tao/complementarity/minsurf1.c

Solving a system of nonlinear equations, nonlinear least squaresFinds the least-squares solution to the under constraint linear model Ax = b, with L1-norm regularizer

Finds the least-squares solution to the under constraint linear model Ax = b, with regularizer

tao/leastsquares/chwirut1.c

tao/leastsquares/chwirut2.c

tao/pde_constrained/elliptic.c

tao/pde_constrained/hyperbolic.c

tao/pde_constrained/parabolic.c

Solving an unconstrained minimization problemtao/constrained/maros.c

tao/leastsquares/chwirut1f.F90

tao/leastsquares/chwirut2f.F90

tao/unconstrained/eptorsion1.c

tao/unconstrained/eptorsion2.c

tao/unconstrained/eptorsion2f.F

tao/unconstrained/minsurf2.c

tao/unconstrained/rosenbrock1.c

tao/unconstrained/rosenbrock1f.F90

TSSolves the ordinary differential equations (IVPs) using explicit and implicit time-integration methods

adjoint for time dependent parametersts/ex20td.c

adjoint sensitivity analysisPerforms adjoint sensitivity analysis for the van der Pol equation

Burger's equationts/ex50.c

differential-algebraic equationTransient nonlinear driven cavity in 2d

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

tao/unconstrained/spectraladjointassimilation.c

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

tao/unconstrained/spectraladjointassimilation.c

multicomponentTransient nonlinear driven cavity in 2d

nonlinear problemsSolves the time independent Bratu problem using pseudo-timestepping

ts/ex1f.F

Optimization using adjoint sensitivity analysisSolves a ODE-constrained optimization problem -- finding the optimal initial conditions for the van der Pol equation

Solves the van der Pol equation

pseudo-timesteppingSolves the time independent 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)

tao/unconstrained/spectraladjointassimilation.c

time-dependent nonlinear problemsPerforms adjoint sensitivity analysis for the van der Pol equation

Solves a ODE-constrained optimization problem -- finding the optimal initial conditions for the van der Pol equation

Solves 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

Solves the van der Pol equation and demonstrate IMEX

ts/ex50.c

van der Pol DAESolves the van der Pol DAE

van der Pol equationPerforms adjoint sensitivity analysis for the van der Pol equation

Solves the van der Pol equation and demonstrate IMEX

van der Pol equation DAE equivalentPerforms adjoint sensitivity analysis for the van der Pol equation

Solves a ODE-constrained optimization problem -- finding the optimal initial conditions for the van der Pol equation

Solves the van der Pol equation

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

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


vectors

arraysvec/vec/ex4f90.F90

arrays of vectorsvec/vec/ex4f.F

assemblingvec/vec/ex2f.F

vec/vec/ex4f.F

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

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

Demonstrates use of VecCreateGhost()

vec/vec/ex14f.F90

vec/vec/ex4f90.F90

vec/vec/ex9f.F90

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

basic routinesBasic vector routines

vec/vec/ex1f.F90

vec/vec/ex21f90.F90

drawing vectorsParallel vector layout

vec/vec/ex3f.F

fortran-cDemonstrates calling a Fortran computational routine from C

ghost paddingDemonstrates use of VecCreateGhost()

vec/vec/ex14f.F90

vec/vec/ex9f.F90

local access toParallel vector layout

norms of sub-vectorsDemonstrates VecStrideNorm()

vec/vec/ex11f.F

vec/vec/ex11f90.F90

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.F90

vec/vec/ex20f90.F90

viewingParallel HDF5 Vec Viewing

Vectors

loading a binary vectormat/ex12.c

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

viewersdm/ex7.c

dm/ex9.c

appendAppends to an ASCII file

hdf5Parallel HDF5 Vec Viewing