MCPcopy Create free account
hub / github.com/DedalusProject/dedalus / _check_domain_containment

Method _check_domain_containment

dedalus/core/problems.py:109–112  ·  view source on GitHub ↗

Require one domain contain another.

(subexpr, supexpr, subname, supname)

Source from the content-addressed store, hash-verified

107
108 @staticmethod
109 def _check_domain_containment(subexpr, supexpr, subname, supname):
110 """Require one domain contain another."""
111 if np.any(np.logical_and(subexpr.domain.nonconstant, supexpr.domain.constant)):
112 raise UnsupportedEquationError("{} domain cannot be larger than {} domain.".format(subname, supname))
113
114
115class LinearBoundaryValueProblem(ProblemBase):

Callers 2

Calls 1

Tested by

no test coverage detected