()
| 73 | |
| 74 | @pytest.mark.skipif(not dolfinx.has_superlu_dist, reason="No SuperLU_DIST") |
| 75 | def test_superlu_problem_default_args(): |
| 76 | from dolfinx.fem.problems import LinearProblem |
| 77 | |
| 78 | mesh = create_unit_square(MPI.COMM_WORLD, 5, 5) |
| 79 | V = functionspace(mesh, ("Lagrange", 4)) |
| 80 | u, v = TrialFunction(V), TestFunction(V) |
| 81 | |
| 82 | a = inner(grad(u), grad(v)) * dx + inner(u, v) * dx |
| 83 | L = inner(1.0, v) * dx |
| 84 | |
| 85 | # Check that no optional arguments leads to successful solve |
| 86 | problem = LinearProblem(a, L) |
| 87 | _ = problem.solve() |
nothing calls this directly
no test coverage detected