Periodic domains
Version Highlights:
- Periodic pressure solve
- Improved structs:
content_type
, global item context, batched structs
Breaking Changes:
- (minor) Removed
item_condition
argument fromplaceholder()
. Use the context item condition instead. - (minor)
CenteredGrid.dtype
now returns aCenteredGrid
. Same forStaggeredGrid
. - (minor) Passing
item_condition=None
anywhere now uses the context item condition. Useitem_condition=ALL_ITEMS
to iterate over all items. - (minor)
StructBackend
now validates returned values by default. Replace it withStructBackend(target_content_type=struct.INVALID)
to revert to old behavior.
Deprecations:
math.types
: UseStruct.dtype
instead.StateCollection.default_physics
struct.unsafe()
: Setcontent_type
to non-data instead.
Pull request #10