Commit 292c0c5f authored by Dr. Felix Tobias Schindler's avatar Dr. Felix Tobias Schindler
Browse files

[pymortests] also test apply_inverse of DuneXTMatrixOperator

parent 5facb6ab
Pipeline #106079 passed with stages
in 57 minutes and 15 seconds
......@@ -495,8 +495,14 @@ if config.HAVE_DUNEGDT:
mat.set_entry(n, n, 1.)
return DuneXTMatrixOperator(mat)
def test_dunegdt_identiy():
def test_dunegdt_identiy_apply():
op = make_dunegdt_identity(4)
U = op.source.ones(1)
V = op.apply(U)
assert (U - V).sup_norm() < 1e-14
def test_dunegdt_identiy_apply_inverse():
op = make_dunegdt_identity(4)
V = op.source.ones(1)
U = op.apply_inverse(U)
assert (U - V).sup_norm() < 1e-14
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