AttributeError: type object 'LocalSolver' has no attribute 'LU'

Bug #1502877 reported by Alex
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
dolfin-adjoint
New
Undecided
Unassigned

Bug Description

This one is some sort of a developer error or something, as I was only following instructions as per http://opentidalfarm.readthedocs.org/en/latest/installation.html

from localsolver import LocalSolver File "/usr/lib/python2.7/dist-packages/dolfin_adjoint/localsolver.py", line 48, in <module> class LocalSolver(dolfin.LocalSolver): File "/usr/lib/python2.7/dist-packages/dolfin_adjoint/localsolver.py", line 49, in LocalSolver def init(self, a, L = None, solver_type = dolfin.LocalSolver.LU, **kwargs):

AttributeError: type object 'LocalSolver' has no attribute 'LU'

and the code from the respective files:

class LocalSolver(dolfin.LocalSolver):
   def init(self, a, L = None, solver_type = dolfin.LocalSolver.PU, **kwargs): dolfin.LocalSolver.init(self, a, L, solver_type)

and

# Prepare LocalSolver
local_solver = LocalSolver(a, solver_type = LocalSolver.Cholesky)
local_solver.factorize()

I really ain't got a clue why that error occurs as both files were downloaded from dolfin-adjoint source?

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.