tlm_adjoint.fenics.backend_interface

Module Contents

tlm_adjoint.fenics.backend_interface.linear_solver(A, linear_solver_parameters, *, comm=None)

Construct a DOLFIN LUSolver or KrylovSolver.

Parameters:
  • A – A DOLFIN matrix.

  • linear_solver_parameters – Linear solver parameters.

  • comm – A communicator.

Returns:

The DOLFIN LUSolver or KrylovSolver.