Require one domain contain another.
(subexpr, supexpr, subname, supname)
| 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 | |
| 115 | class LinearBoundaryValueProblem(ProblemBase): |
no test coverage detected