I want to use a direct solver in parallel. Does the petsc LU solver work in parallel ? I do something like this
problem = NonlinearVariationalProblem(F, up, self.bc, dF)
solver = NonlinearVariationalSolver(problem)
solver.parameters['newton_solver']['linear_solver'] = 'petsc'
solver.solve()
But this gives me petsc error
[0]PETSC ERROR: No support for this operation for this object type!
[0]PETSC ERROR: Matrix format mpiaij does not have a built-in PETSc
LU!