You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/example2.rst
+5-5
Original file line number
Diff line number
Diff line change
@@ -37,7 +37,7 @@ A fractional kernel
37
37
38
38
We start off by creating a fractional kernel with infinite horizon and constant fractional order :math:`s=0.75`.
39
39
40
-
.. literalinclude:: ../drivers/example2.py
40
+
.. literalinclude:: ../examples/example2.py
41
41
:start-after: Get a fractional kernel
42
42
:end-before: #################
43
43
:lineno-match:
@@ -66,7 +66,7 @@ Instead of the `meshFactory` used in the previous example, we now use the `nonlo
66
66
The advantage is that this factory can generate meshes with appropriate interaction domains.
67
67
For this particular example, the factory will not generate any interaction domain, since the homogeneous Dirichlet condition on :math:`\mathbb{R}^2\setminus\Omega` can be enforced via a boundary integral.
68
68
69
-
.. literalinclude:: ../drivers/example2.py
69
+
.. literalinclude:: ../examples/example2.py
70
70
:start-after: Generate an appropriate mesh
71
71
:end-before: #################
72
72
:lineno-match:
@@ -80,7 +80,7 @@ We assemble the nonlocal operator by passing the kernel to the `assembleNonlocal
80
80
The optional parameter `matrixFormat` determines what kind of linear operator is assembled.
81
81
We time the assembly of the operator as a dense matrix, and as a hierarchical matrix, and inspect the resulting objects.
82
82
83
-
.. literalinclude:: ../drivers/example2.py
83
+
.. literalinclude:: ../examples/example2.py
84
84
:start-after: Assemble the operator
85
85
:end-before: #################
86
86
:lineno-match:
@@ -93,7 +93,7 @@ For larger number of unknowns, we expect the hierarchical assembly scale like :m
93
93
94
94
Similar to the local PDE example, we can then solve the resulting linear equation and compute the error in energy norm.
95
95
96
-
.. literalinclude:: ../drivers/example2.py
96
+
.. literalinclude:: ../examples/example2.py
97
97
:start-after: Solve the linear system
98
98
:end-before: #################
99
99
:lineno-match:
@@ -116,7 +116,7 @@ We will choose :math:`\gamma(x,y) \sim \chi_{V_{\delta}^{(2)}(x)}(y)` for :math:
116
116
117
117
where :math:`\mathcal{I}:=\{y\in\mathbb{R}^2\setminus\Omega | \exists x\in\Omega: \gamma(x,y)\neq0\}` is the interaction domain.
0 commit comments