Skip to content
Snippets Groups Projects
Commit 8119c48e authored by Martin Bauer's avatar Martin Bauer
Browse files

Bugfix in waLBerla boundary generation

parent 802305a7
Branches
Tags
No related merge requests found
......@@ -40,7 +40,6 @@ def structFromNumpyDataType(structName, numpyDtype):
def createBoundaryClass(boundaryObject, lbMethod, doublePrecision=True, target='cpu'):
structName = "IndexInfo"
indexStructDtype = numpyDataTypeForBoundaryObject(boundaryObject, lbMethod.dim)
print("indexStructDtype", indexStructDtype.descr)
pdfField = Field.createGeneric('pdfs', lbMethod.dim, np.float64 if doublePrecision else np.float32,
indexDimensions=1, layout='fzyx', indexShape=[len(lbMethod.stencil)])
......
......@@ -123,7 +123,7 @@ def createIndexedKernel(listOfEquations, indexFields, functionName="kernel", typ
loopBody.append(assignment)
functionBody = Block([loopNode])
ast = KernelFunction(functionBody, "cpu", functionName=functionName)
ast = KernelFunction(functionBody, functionName=functionName)
fixedCoordinateMapping = {f.name: coordinateTypedSymbols for f in nonIndexFields}
resolveFieldAccesses(ast, set(['indexField']), fieldToFixedCoordinates=fixedCoordinateMapping)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment