File: README

package info (click to toggle)
dolfinx 2019.2.0~git20210130.c14cb0a-5
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 5,584 kB
  • sloc: cpp: 48,110; python: 9,536; xml: 9,114; makefile: 261; sh: 17
file content (58 lines) | stat: -rw-r--r-- 2,193 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
Documenting DOLFIN demos
========================

The documentation for the DOLFIN demos is written by hand and located
together with the demos in the DOLFIN source tree. To document a (new)
DOLFIN 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

  * foo/common.txt -- containing common information such as the main
    features the demo illustrates and, if applicable, a mathematical
    description of the differential equation that is solved. This file
    should then be included in the C++ and Python versions.

  * foo/cpp/documentation.rst -- containing the reST source file with
    the documentation that is specific to the C++ version of the demo.

  * foo/python/documentation.rst -- containing the reST source file
    with the documentation that is specific to the Python version of
    the demo.

   If either the C++ or the Python version of the demo does not exist,
   feel free to add the version and continue.

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
   DOLFIN documentation when running make doc after building
   DOLFIN. 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 DOLFIN tests.

C++ and Python specific contents
================================

The C++ and Python documentation reST source files should

* Explain each step of the solution procedure. Do this by including
  and explaining code snippets from the demo source code.

* Include links to the API documentation using the :cpp:class: and
  :py:class: directives. Note that for the Python classes, the
  full module path is required (for instance
  py:class:dolfin.cpp.NewtonSolver)

* Include the complete set of files needed to run the demo using the
  include directive.