MCPcopy Create free account
hub / github.com/FEniCS/dolfinx / test_superlu_problem_default_args

Function test_superlu_problem_default_args

python/test/unit/fem/test_problems.py:75–87  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

73
74@pytest.mark.skipif(not dolfinx.has_superlu_dist, reason="No SuperLU_DIST")
75def 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()

Callers

nothing calls this directly

Calls 4

solveMethod · 0.95
create_unit_squareFunction · 0.90
functionspaceFunction · 0.90
LinearProblemClass · 0.90

Tested by

no test coverage detected