1288c0443SJeremy L Thompson## libCEED: Basic Examples 2288c0443SJeremy L Thompson 317be3a41SJeremy L ThompsonTwo examples are provided that rely only upon libCEED without any external libraries. 4288c0443SJeremy L Thompson 566087c08SValeria Barra### Example 1: ex1-volume 6288c0443SJeremy L Thompson 717be3a41SJeremy L ThompsonThis example uses the mass matrix to compute the length, area, or volume of a region, depending upon runtime parameters. 8288c0443SJeremy L Thompson 966087c08SValeria Barra### Example 2: ex2-surface 10288c0443SJeremy L Thompson 1117be3a41SJeremy L ThompsonThis example uses the diffusion matrix to compute the surface area of a region, in 1D, 2D or 3D, depending upon runtime parameters. 12*0b96b02dSJeremy L Thompson 13*0b96b02dSJeremy L Thompson### Example 3: ex3-volume 14*0b96b02dSJeremy L Thompson 15*0b96b02dSJeremy L ThompsonThis example uses the mass matrix to compute the length, area, or volume of a region, depending upon runtime parameters. 16*0b96b02dSJeremy L ThompsonUnlike 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