Skip to content

Commit 75a7e7f

Browse files
authored
Doc reorganization (#839)
1 parent 5c83dd4 commit 75a7e7f

File tree

9 files changed

+27
-15
lines changed

9 files changed

+27
-15
lines changed

docs/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,13 +77,14 @@ set(DOXYGEN_HTML_EXTRA_FILES
7777

7878
doxygen_add_docs(
7979
doc
80-
"${CMAKE_CURRENT_SOURCE_DIR}/About.md"
80+
"${CMAKE_CURRENT_SOURCE_DIR}/about.md"
8181
"${CMAKE_CURRENT_SOURCE_DIR}/first_steps.md"
8282
"${CMAKE_CURRENT_SOURCE_DIR}/going_further.md"
8383
"${CMAKE_CURRENT_SOURCE_DIR}/uniform_heat_equation.md"
8484
"${CMAKE_CURRENT_SOURCE_DIR}/non_uniform_heat_equation.md"
8585
"${CMAKE_CURRENT_SOURCE_DIR}/concepts.md"
8686
"${CMAKE_CURRENT_SOURCE_DIR}/heat_equation_spectral.md"
87+
"${CMAKE_CURRENT_SOURCE_DIR}/examples.md"
8788
"${DDC_SOURCE_DIR}/include/ddc/"
8889
ALL
8990
)

docs/About.md renamed to docs/about.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1+
# About {#mainpage}
2+
13
<!--
24
Copyright (C) The DDC development team, see COPYRIGHT.md file
35
46
SPDX-License-Identifier: MIT
57
-->
68

7-
# About {#mainpage}
8-
99
%DDC is the discrete domain computation library, a C++-17 library that aims to offer to the C++/MPI
1010
world an equivalent to the
1111
[`xarray.DataArray`](https://docs.xarray.dev/en/stable/generated/xarray.DataArray.html)/[`dask.Array`](https://docs.dask.org/en/stable/array.html)

docs/concepts.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1+
# DDC concepts
2+
13
<!--
24
Copyright (C) The ddc development team, see COPYRIGHT.md file
35
46
SPDX-License-Identifier: MIT
57
-->
68

7-
# DDC concepts
8-
99
DDC introduces labels in the form of dimensions and attributes on top of Kokkos arrays, which offer a more intuitive and less error-prone development experience.
1010

1111
Using Kokkos, the indices of views are weakly typed, meaning that each index is a simple integer. Let's consider a multidimensional view intended to represent a physical quantity, such as a temperature field for example. The first index represents the temperature along the \f$x\f$ axis, and the second index represents the temperature along the \f$y\f$ axis. As both indices are simple integers, they may be swapped by mistake. The code would compile successfully, but the result would be incorrect, and the source of the error would be difficult to trace.

docs/examples.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Examples
2+
3+
<!--
4+
Copyright (C) The DDC development team, see COPYRIGHT.md file
5+
6+
SPDX-License-Identifier: MIT
7+
-->
8+
9+
- \subpage first_steps
10+
- \subpage going_further
11+
- \subpage heat_equation_spectral

docs/first_steps.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1+
# The uniform heat equation {#first_steps}
2+
13
<!--
24
Copyright (C) The DDC development team, see COPYRIGHT.md file
35
46
SPDX-License-Identifier: MIT
57
-->
68

7-
# Commented example: the uniform heat equation {#first_steps}
8-
99
In \subpage uniform_heat_equation "examples/uniform_heat_equation.cpp" is a DDC example implementing a forward
1010
finite-difference solver for the heat equation over a rectangle 2D domain with periodic boundary
1111
conditions.

docs/going_further.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1+
# The non uniform heat equation {#going_further}
2+
13
<!--
24
Copyright (C) The DDC development team, see COPYRIGHT.md file
35
46
SPDX-License-Identifier: MIT
57
-->
68

7-
# Commented example: the non uniform heat equation {#going_further}
8-
99
In \subpage non_uniform_heat_equation "examples/non_uniform_heat_equation.cpp" is a DDC example implementing a forward
1010
finite-difference solver for the heat equation over a rectangle 2D domain with periodic boundary
1111
conditions and non-uniform space discretization.

docs/heat_equation_spectral.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1+
# examples/heat_equation_spectral.cpp {#heat_equation_spectral}
2+
13
<!--
24
Copyright (C) The DDC development team, see COPYRIGHT.md file
35
46
SPDX-License-Identifier: MIT
57
-->
68

7-
# examples/heat_equation_spectral.cpp {#heat_equation_spectral}
8-
99
\include{lineno} heat_equation_spectral.cpp

docs/non_uniform_heat_equation.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1+
# examples/non_uniform_heat_equation.cpp {#non_uniform_heat_equation}
2+
13
<!--
24
Copyright (C) The DDC development team, see COPYRIGHT.md file
35
46
SPDX-License-Identifier: MIT
57
-->
68

7-
# examples/non_uniform_heat_equation.cpp {#non_uniform_heat_equation}
8-
99
\include{lineno} non_uniform_heat_equation.cpp

docs/uniform_heat_equation.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1+
# examples/uniform_heat_equation.cpp {#uniform_heat_equation}
2+
13
<!--
24
Copyright (C) The DDC development team, see COPYRIGHT.md file
35
46
SPDX-License-Identifier: MIT
57
-->
68

7-
# examples/uniform_heat_equation.cpp {#uniform_heat_equation}
8-
99
\include{lineno} uniform_heat_equation.cpp

0 commit comments

Comments
 (0)