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
......@@ -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 = { parseBasePointerInfo(basePointerInfo, loopOrder, field) for field in allFields}
resolveFieldAccesses(code, readOnlyFields, fieldToBasePointerInfo=basePointerInfos)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment