You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
UFL:ERROR Replacement expressions must have the same shape as what they replace.
Traceback (most recent call last):
File "test.py", line 7, in <module>
M = assemble(inner(test, trial) * dx)
File "[..]/firedrake/src/firedrake/firedrake/assemble.py", line 105, in assemble
loops = tuple(loops)
File "[..]/firedrake/src/firedrake/firedrake/assemble.py", line 228, in _assemble
kernels = tsfc_interface.compile_form(f, "form", parameters=form_compiler_parameters, inverse=inverse)
File "[..]/firedrake/src/firedrake/firedrake/tsfc_interface.py", line 206, in compile_form
f = _real_mangle(f)
File "[..]/firedrake/src/firedrake/firedrake/tsfc_interface.py", line 233, in _real_mangle
return ufl.replace(form, replacements)
File "[..]/firedrake/src/ufl/ufl/algorithms/replace.py", line 69, in replace
return map_integrand_dags(Replacer(mapping2), e)
File "[..]/firedrake/src/ufl/ufl/algorithms/replace.py", line 38, in __init__
error("Replacement expressions must have the same shape as what they replace.")
File "[..]/firedrake/src/ufl/ufl/log.py", line 172, in error
raise self._exception_type(self._format_raw(*message))
ufl.log.UFLException: Replacement expressions must have the same shape as what they replace.
The text was updated successfully, but these errors were encountered:
For example:
leads to the error
The text was updated successfully, but these errors were encountered: