Draft: Changes for compatibility with pystencils 2.0
Introduce a significant number of patches for compatibility with the upcoming pystencils 2.0.
Status:
-
Fix field duplication in create_lb_update_rule
: Remove the workaround once field duplication is fixed in pystencils -
Data types in boundary handling: LatticeBoltzmannBoundaryHandling
does not allow to specify a data type and always usesfloat64
. This leads to type errors when combined with LB fields withfloat32
dtype. -
Mixed precision: Need to explicitly insert casts at field reads/writes when computing and storing PDFs in different float formats
Edited by Frederik Hennig