linear solver parameters not recognized
I would like to solve a linear system with CG, and did the following
=======
from dolfin import *
# Create mesh and define function space
mesh = UnitSquareMesh(32, 32)
V = FunctionSpace(mesh, "Lagrange", 1)
# Define boundary condition
bc = DirichletBC(V, Constant(0.0), 'on_boundary')
# Define variational problem
u = TrialFunction(V)
v = TestFunction(V)
a = inner(grad(u), grad(v)) * dx
L = Constant(1.0) * v * dx
# Compute solution
u = Function(V)
set_log_
solve(a == L, u, bc,
solver_
=======
The output of this script is
=======
[...]
Solving linear system of size 1089 x 1089 (PETSc LU solver, umfpack).
=======
so I'm guessing I'm making a mistake. Where is it?
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- No assignee Edit question
- Solved by:
- Nico Schlömer
- Solved:
- Last query:
- Last reply: