Skip to content
Snippets Groups Projects
Commit 600e6397 authored by Frederik Hennig's avatar Frederik Hennig
Browse files

fixed typos

parent d912efd2
No related branches found
No related tags found
No related merge requests found
Pipeline #57472 passed
...@@ -23,8 +23,8 @@ Not yet available. ...@@ -23,8 +23,8 @@ Not yet available.
## Primer ## Primer
With *pystencils-sfg*, including your *pystencils*-generated kernels with handwritten code becomes straightforward With *pystencils-sfg*, including your *pystencils*-generated kernels with handwritten code becomes straightforward
and intuitive. To illustrate, generating a Jacobi smoother for the two-dimensional Poisson equation, and intuitive. To illustrate, generating a Jacobi smoother for the two-dimensional Poisson equation
using the awesome C++23 `std::mdspan`, takes just a few lines of code: and mapping it onto C++23 `std::mdspan`s takes just a few lines of code:
```python ```python
import sympy as sp import sympy as sp
...@@ -40,7 +40,7 @@ with SourceFileGenerator() as sfg: ...@@ -40,7 +40,7 @@ with SourceFileGenerator() as sfg:
@kernel @kernel
def poisson_jacobi(): def poisson_jacobi():
u_dst[0,0] @= (h**2 * f[0, 0] * u_src[1, 0] + u_src[-1, 0] + u_src[0, 1] + u_src[0, -1]) / 4 u_dst[0,0] @= (h**2 * f[0, 0] + u_src[1, 0] + u_src[-1, 0] + u_src[0, 1] + u_src[0, -1]) / 4
poisson_kernel = sfg.kernels.create(poisson_jacobi) poisson_kernel = sfg.kernels.create(poisson_jacobi)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment