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
Hi, everyone) I don't want to set up a separate topic, so I'll leave a couple of sentences about Mesh.with_subdomains.
The current signature is:
defwith_subdomains(self, subdomains: Dict[str, Callable[[ndarray], ndarray]]):
"""Return a copy of the mesh with named subdomains. Parameters ---------- boundaries A dictionary of lambda functions with the names of the subdomains as keys. The midpoint of the element should return ``True`` for the corresponding lambda function if the element belongs to the subdomain. """returnreplace(
self,
_subdomains={
**({} ifself._subdomainsisNoneelseself._subdomains),
**{name: (self.elements_satisfying(test)
ifcallable(test) elsetest)
forname, testinsubdomains.items()},
},
)
In the docstring, 'boundaries' should be replaced with 'subdomains'.
This function is similar to with_boundaries, so:
2.1 Perhaps the following signature should be defined:
2.2 Make changes to the Parameters description:
"
Parameters
----------
subdomains
A dictionary of index arrays or lambda functions with the names of the subdomains
as keys.
"
Hi, everyone) I don't want to set up a separate topic, so I'll leave a couple of sentences about Mesh.with_subdomains.
The current signature is:
2.1 Perhaps the following signature should be defined:
2.2 Make changes to the Parameters description:
"
Parameters
----------
subdomains
A dictionary of index arrays or lambda functions with the names of the subdomains
as keys.
"
Originally posted by @valvikby in #1093 (reply in thread)
The text was updated successfully, but these errors were encountered: