Skip to content
Snippets Groups Projects
Commit 0edd3844 authored by Jan Hönig's avatar Jan Hönig
Browse files

Added kerncraft and pystencils-kerncraft as demo notebooks.

Fixed demo_heat_equation notebook.
parent ab68008f
No related branches found
No related tags found
No related merge requests found
......@@ -61,7 +61,7 @@ def createKernel(listOfEquations, functionName="kernel", typeForSymbol='double',
typedSplitGroups = [[typeSymbol(s) for s in splitGroup] for splitGroup in splitGroups]
splitInnerLoop(code, typedSplitGroups)
basePointerInfo = [['spatialInner0'], ['spatialInner1']]
basePointerInfo = [['spatialInner0'], ['spatialInner1']] if len(loopOrder) >= 2 else [['spatialInner0']]
basePointerInfos = {field.name: parseBasePointerInfo(basePointerInfo, loopOrder, field) for field in allFields}
resolveFieldAccesses(code, readOnlyFields, fieldToBasePointerInfo=basePointerInfos)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment