From b89a3ab8fca544c11ebf4ab7e6045bc1668046da Mon Sep 17 00:00:00 2001 From: Frederik Hennig <frederik.hennig@fau.de> Date: Wed, 20 Dec 2023 15:13:12 +0100 Subject: [PATCH] fix primer example --- docs/index.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/index.md b/docs/index.md index 892093a..e531563 100644 --- a/docs/index.md +++ b/docs/index.md @@ -32,10 +32,12 @@ import sympy as sp from pystencils import fields, kernel -from pystencilssfg import SourceFileGenerator +from pystencilssfg import SourceFileGenerator, SfgComposer from pystencilssfg.source_concepts.cpp import mdspan_ref -with SourceFileGenerator() as sfg: +with SourceFileGenerator() as ctx: + sfg = SfgComposer(ctx) + u_src, u_dst, f = fields("u_src, u_dst, f(1) : double[2D]", layout="fzyx") h = sp.Symbol("h") -- GitLab