diff --git a/sympde/topology/mapping.py b/sympde/topology/mapping.py index 8fd3dd7a..f71e89a7 100644 --- a/sympde/topology/mapping.py +++ b/sympde/topology/mapping.py @@ -543,18 +543,18 @@ def __new__(cls, u, mapping=None): else: mapping = space.domain.mapping - J = mapping.jacobian + J = mapping.jacobian if isinstance(kind, (UndefinedSpaceType, H1SpaceType)): - expr = el + expr = el - elif isinstance(kind , HcurlSpaceType): - expr = J.inv().T*el + elif isinstance(kind, HcurlSpaceType): + expr = el * J.inv().T elif isinstance(kind, HdivSpaceType): - expr = (J/J.det())*el + expr = el * (J/J.det()) elif isinstance(kind, L2SpaceType): - expr = J.det()*el + expr = el / J.det() # elif isinstance(kind, UndefinedSpaceType): # raise ValueError('kind must be specified in order to perform the pull-back transformation') diff --git a/sympde/version.py b/sympde/version.py index 17c1a626..b2385cb4 100644 --- a/sympde/version.py +++ b/sympde/version.py @@ -1 +1 @@ -__version__ = "0.10.2" +__version__ = "0.10.3"