DOLFINx 0.10.0.0
DOLFINx C++ interface
Loading...
Searching...
No Matches
demo Directory Reference
Directory dependency graph for demo:
/__w/dolfinx/dolfinx/cpp/demo

Directories

 
biharmonic
 
codim_0_assembly
 
custom_kernel
 
hyperelasticity
 
interpolation-io
 
interpolation_different_meshes
 
mixed_poisson
 
poisson
 
poisson_matrix_free

Detailed Description

The documentation for the DOLFINx demos is written by hand and located together with the demos in the DOLFINx source tree. To document a (new) DOLFINx demo located in the directory foo (for instance pde/poisson), follow the two steps below. In general, the simplest way is probably to look at one of the documented demos for instance (demo/pde/poisson/) and follow the same setup.

1) Add these 3 files

2) Move the directory foo from the directory undocumented/ to the suitable directory (for instance pde/ or la/).

Note

The demo documentation is automatically included in the complete DOLFINx documentation when running make doc after building DOLFINx. While documenting a demo, it may be handy to only run make doc_demo and then make doc_html_[python|cpp].

Note

Tests for the validity of the code snippets used in the demo documentation are included in the standard DOLFINx tests.

C++ and Python specific contents

The C++ and Python documentation reST source files should