We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fbd288e commit ca024f6Copy full SHA for ca024f6
ufl/algorithms/replace.py
@@ -10,7 +10,7 @@
10
11
from ufl.algorithms.analysis import has_exact_type
12
from ufl.algorithms.map_integrands import map_integrand_dags
13
-from ufl.classes import CoefficientDerivative, Form
+from ufl.classes import CoefficientDerivative, BaseForm
14
from ufl.constantvalue import as_ufl
15
from ufl.core.external_operator import ExternalOperator
16
from ufl.core.interpolate import Interpolate
@@ -28,7 +28,7 @@ def __init__(self, mapping):
28
# One can replace Coarguments by 1-Forms
29
def get_shape(x):
30
"""Get the shape of an object."""
31
- if isinstance(x, Form):
+ if isinstance(x, BaseForm):
32
return x.arguments()[0].ufl_shape
33
return x.ufl_shape
34
0 commit comments