Skip to content
Snippets Groups Projects
Commit f8c5b0bd authored by Nils Kohl's avatar Nils Kohl :full_moon_with_face:
Browse files

Another type fix.

mypy is driving me insane.
parent fcf63b81
Branches
No related tags found
1 merge request!2Vector operators
Pipeline #66275 failed
...@@ -605,9 +605,10 @@ def all_operators( ...@@ -605,9 +605,10 @@ def all_operators(
for c in [0, 1, 2]: for c in [0, 1, 2]:
# fmt: off # fmt: off
div_geometries = list(geometries)
if c == 2: if c == 2:
div_geometries = three_d div_geometries = three_d
else:
div_geometries = list(geometries)
ops.append(OperatorInfo(mapping=f"P2ToP1", name=f"Div_{c}", trial_space=P1, test_space=P2, ops.append(OperatorInfo(mapping=f"P2ToP1", name=f"Div_{c}", trial_space=P1, test_space=P2,
form=partial(divergence, transpose=False, component_index=c), form=partial(divergence, transpose=False, component_index=c),
type_descriptor=type_descriptor, opts=opts, geometries=div_geometries, type_descriptor=type_descriptor, opts=opts, geometries=div_geometries,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment