Example Codes

## Hypre example codes

Clicking on any of the categories below displays examples that contain the described feature. Additionally, a comprehensive list of all examples follows the category lists.

The numerical results from most of the example codes below can be examined using the GLVis visualization tool. See the `vis` sub-directory for more details.

Users are encouraged to submit any example codes that they have created and would like to share. Contact a member of the hypre team.

## Interface

- Structured (Struct)
- Semi-Structured (SStruct)
- Linear-Algebraic (IJ)
- Finite element (FEI)

## Equation (PDE)

- 2D Laplace
- 2D Convection-Reaction-Diffusion
- 2D Biharmonic
- 2D Laplace eigenproblem
- 3D Definite Maxwell

## Discretization

- 5-point stencil
- 9-point stencil
- Finite elements

## Solver

- SMG
- PFMG
- SysPFMG
- BoomerAMG
- PCG (no preconditioner)
- PCG with SMG preconditioner
- PCG with split-SMG preconditioner
- PCG with PFMG preconditioner
- PCG with BoomerAMG preconditioner
- PCG with AMS preconditioner
- PCG with ParaSails preconditioner
- PCG with Euclid preconditioner
- GMRES with SMG preconditioner
- GMRES with PFMG preconditioner
- GMRES with SysPFMG preconditioner
- GMRES with BoomerAMG preconditioner
- GMRES with ParaSails preconditioner
- GMRES with Euclid preconditioner
- Flexible GMRES with BoomerAMG preconditioner
- LOBPCG with BoomerAMG preconditioner

## Programming language

- C
- Fortran
- C++

## All example codes

- Example 1: the simplest Struct example
- Example 2: a simple two processor Struct example
- Example 3: a Struct solver for the 5-pt discretization of the 2D Laplace equation
- Example 4: several Struct solvers for a variable coefficient 2D Convection-Reaction-Diffusion equation
- Example 5: unstructured solvers for the 5-pt discretization of the 2D Laplace equation
- Example 5big: a 64-bit version of Example 5
- Example 5f: Fortran version of Example 5
- Example 6: a simple two processor SStruct example
- Example 7: several SStruct solvers for a variable coefficient 2D Convection-Reaction-Diffusion equation
- Example 8: two processor SStruct example with multiple parts
- Example 9: a SStruct example for the biharmonic problem treated as a system of equations
- Example 10: FEI example with bilinear finite elements for the 2D Laplace equation
- Example 11: eigensolver for the 5-pt discretization of the 2D Laplace equation
- Example 12: nodal version of Example 1
- Example 12f: Fortran version of Example 12
- Example 13: a SStruct example of bilinear finite elements on a mesh with an "enhanced connectivity" point
- Example 14: version of Example 13 using the SStruct FEM input functions (instead of stencils)
- Example 15: SStruct solver for a 3D definite Maxwell problem
- Example 15big: a 64-bit version of Example 15
- Example 16: a SStruct example of a high order Q3 finite element discretization