You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In Psydac it is difficult to use a Domain object in the single and multi-patch cases without handling lots of corner cases with if statements. One reason is that domain.interior.args returns objects of different types:
for a multi-patch domain: the subdomains as a tuple of logical domains
for a single patch domain: the name of the unique subdomain (the domain itself), as a tuple of strings,
This is probably because domain.interior is a Union of subdomains.
To fix this without changing how Unions are handled in SymPDE, we could add a function/attribute domain.subdomains which always returns the subdomains as a tuple of logical domains.
The text was updated successfully, but these errors were encountered:
In order to improve the compatibility between single and multi-patch
domains, we add:
- `subdomains` and `mappings` attributes to the `Domain` class, which
always return a tuple (fixes#171);
- the possibility of calling the `join` function (which usually creates
multipatch domains) with a single patch.
We also increase the library version to 0.19.1.
---------
Co-authored-by: Yaman Güçlü <yaman.guclu@gmail.com>
In Psydac it is difficult to use a
Domain
object in the single and multi-patch cases without handling lots of corner cases withif
statements. One reason is thatdomain.interior.args
returns objects of different types:This is probably because
domain.interior
is a Union of subdomains.To fix this without changing how Unions are handled in SymPDE, we could add a function/attribute
domain.subdomains
which always returns the subdomains as a tuple of logical domains.The text was updated successfully, but these errors were encountered: