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

Fix sample script in docs

parent 632e3729
No related branches found
No related tags found
1 merge request!14Adapt SFG to field typing changes in pystencils
Pipeline #73014 passed
......@@ -5,7 +5,7 @@ import sympy as sp
with SourceFileGenerator() as sfg:
# Define a copy kernel
src, dst = ps.fields("src, dst: [1D]")
src, dst = ps.fields("src, dst: double[1D]")
c = sp.Symbol("c")
@ps.kernel
......@@ -19,7 +19,7 @@ with SourceFileGenerator() as sfg:
import pystencilssfg.lang.cpp.std as std
sfg.include("<span>")
sfg.function("scale_kernel")(
sfg.map_field(src, std.vector.from_field(src)),
sfg.map_field(dst, std.span.from_field(dst)),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment