xref: /libCEED/examples/ceed/README.md (revision 7b3ff0698626cc2e5ce463afc10290072fd55c90)
1## libCEED: Basic Examples
2
3Two examples are provided that rely only upon libCEED without any external libraries.
4
5### Example 1: ex1-volume
6
7This example uses the mass matrix to compute the length, area, or volume of a region, depending upon runtime parameters.
8
9### Example 2: ex2-surface
10
11This example uses the diffusion matrix to compute the surface area of a region, in 1D, 2D or 3D, depending upon runtime parameters.
12
13### Example 3: ex3-volume
14
15This example uses the mass matrix to compute the length, area, or volume of a region, depending upon runtime parameters.
16Unlike ex1, this example also adds the diffusion matrix to add a zero contribution to this calculation while demonstrating the ability of libCEED to handle multiple basis evaluation modes on the same input and output vectors.
17