Skip to content

Commit c3fd00c

Browse files
committedSep 28, 2021
[discretizers.dunegdt] name products
1 parent b33947f commit c3fd00c

File tree

1 file changed

+8
-8
lines changed
  • src/pymor/discretizers/dunegdt

1 file changed

+8
-8
lines changed
 

‎src/pymor/discretizers/dunegdt/cg.py

+8-8
Original file line numberDiff line numberDiff line change
@@ -360,22 +360,22 @@ def make_l2_neumann_boundary_functional(func):
360360
products = {}
361361
# * in H^1
362362
products.update({
363-
'l2': DuneXTMatrixOperator(l2_product.matrix),
364-
'h1_semi': DuneXTMatrixOperator(h1_semi_product.matrix),
363+
'l2': DuneXTMatrixOperator(l2_product.matrix, name='l2'),
364+
'h1_semi': DuneXTMatrixOperator(h1_semi_product.matrix, name='h1_semi'),
365365
'h1': (DuneXTMatrixOperator(l2_product.matrix)
366-
+ DuneXTMatrixOperator(h1_semi_product.matrix)).assemble(),
366+
+ DuneXTMatrixOperator(h1_semi_product.matrix)).assemble().with_(name='h1'),
367367
})
368368
if mu_energy_product:
369-
products['energy'] = DuneXTMatrixOperator(energy_product.matrix)
369+
products['energy'] = DuneXTMatrixOperator(energy_product.matrix, name='energy')
370370
# * in H^1_0
371371
products.update({
372-
'l2_0': DuneXTMatrixOperator(l2_0_product.matrix),
373-
'h1_0_semi': DuneXTMatrixOperator(h1_0_semi_product.matrix),
372+
'l2_0': DuneXTMatrixOperator(l2_0_product.matrix, name='l2_0'),
373+
'h1_0_semi': DuneXTMatrixOperator(h1_0_semi_product.matrix, name='h1_0_semi'),
374374
'h1_0': (DuneXTMatrixOperator(l2_0_product.matrix)
375-
+ DuneXTMatrixOperator(h1_0_semi_product.matrix)).assemble(),
375+
+ DuneXTMatrixOperator(h1_0_semi_product.matrix)).assemble().with_(name='h1_0'),
376376
})
377377
if mu_energy_product:
378-
products['energy_0'] = DuneXTMatrixOperator(energy_product_0.matrix)
378+
products['energy_0'] = DuneXTMatrixOperator(energy_product_0.matrix, name='energy_0')
379379
if not trivial_dirichlet_data:
380380
dirichlet_data = lhs_ops[0].source.make_array([dirichlet_data.dofs.vector,])
381381

0 commit comments

Comments
 (0)
Please sign in to comment.