Commit c29a64d6 authored by Tim Keil's avatar Tim Keil Committed by René Fritze

stylistic changes

parent a5ea9cea
Pipeline #65538 passed with stages
in 95 minutes and 58 seconds
......@@ -1196,15 +1196,15 @@ def discretize_stationary_cg(analytical_problem, diameter=None, domain_discretiz
for v in p.outputs:
if v[0] == 'l2':
if isinstance(v[1], LincombFunction):
ops = [L2Functional(grid, v_, dirichlet_clear_dofs=False).H
for v_ in v[1].functions]
ops = [L2Functional(grid, vv, dirichlet_clear_dofs=False).H
for vv in v[1].functions]
outputs.append(LincombOperator(ops, v[1].coefficients))
else:
outputs.append(L2Functional(grid, v[1], dirichlet_clear_dofs=False).H)
else:
if isinstance(v[1], LincombFunction):
ops = [BoundaryL2Functional(grid, v_, dirichlet_clear_dofs=False).H
for v_ in v[1].functions]
ops = [BoundaryL2Functional(grid, vv, dirichlet_clear_dofs=False).H
for vv in v[1].functions]
outputs.append(LincombOperator(ops, v[1].coefficients))
else:
outputs.append(BoundaryL2Functional(grid, v[1], dirichlet_clear_dofs=False).H)
......
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