Add `pystencils.make_python_function` used for KernelFunction.compile
Compare changes
- Stephan Seitz authored
`KernelFunction.compile = None` is currently set by the `create_kernel` function of each respective backend as partial function of `<backend>.make_python_function`. The code would be clearer with a unified `make_python_function`. `KernelFunction.compile` can then be implemented as a call to this function with the respective backend.
+ 17
− 11
@@ -83,7 +91,6 @@ def create_kernel(assignments: AssignmentOrAstNodeList, function_name: str = "ke
@@ -148,7 +155,6 @@ def create_indexed_kernel(assignments: AssignmentOrAstNodeList, index_fields, fu