Commit 4804882e authored by Martin Reinecke's avatar Martin Reinecke

fix typos

parent d6341dcb
......@@ -42,7 +42,7 @@ class LaplaceOperator(EndomorphicOperator):
def __init__(self, domain, default_spaces=None, logarithmic=True):
super(LaplaceOperator, self).__init__(default_spaces)
self._domain = self._parse_domain(domain)
if len(self.domain) != 0:
if len(self.domain) != 1:
raise ValueError("The domain must contain exactly one PowerSpace.")
if not isinstance(self.domain[0], PowerSpace):
......
......@@ -31,7 +31,7 @@ class SmoothnessOperator(EndomorphicOperator):
super(SmoothnessOperator, self).__init__(default_spaces=default_spaces)
self._domain = self._parse_domain(domain)
if len(self.domain) != 0:
if len(self.domain) != 1:
raise ValueError("The domain must contain exactly one PowerSpace.")
if not isinstance(self.domain[0], PowerSpace):
......@@ -68,7 +68,7 @@ class SmoothnessOperator(EndomorphicOperator):
return False
def _times(self, x, spaces):
res = self._aplace.adjoint_times(self._laplace(x, spaces), spaces)
res = self._laplace.adjoint_times(self._laplace(x, spaces), spaces)
return (1./self.sigma)**2*res
# ---Added properties and methods---
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment