- Aug 05, 2019
-
-
Stephan Seitz authored
This commit avoid dependency of core pystencils on jinja2. However this could make the printing of some AST-nodes less elegant.
-
- Jul 18, 2019
-
-
- rename header Field.h is not a unique name in waLBerla context - add PyStencilsField.h - bindings were lacking data type
-
Martin Bauer authored
-
- Jul 10, 2019
-
-
Stephan Seitz authored
DestructuringBindingsForFieldClass defines all field-related variables in its subordinated block. However, it leaves a TypedSymbol of type 'Field' for each field undefined. By that trick we can generate kernels that accept structs as kernelparameters. Either to include a pystencils specific Field struct of the following definition: ```cpp template<DTYPE_T, DIMENSION> struct Field { DTYPE_T* data; std::array<DTYPE_T, DIMENSION> shape; std::array<DTYPE_T, DIMENSION> stride; } or to be able to destructure user defined types like `pybind11::array`, `at::Tensor`, `tensorflow::Tensor` ```
-