Solver method for LUSolver for Epetra backends fails

Bug #885569 reported by Johan Hake
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
DOLFIN
Fix Released
Critical
Anders Logg

Bug Description

The following modified test script fails as the Epetra LUSolver does not get properly instantiated:

from dolfin import *

parameters.linear_algebra_backend = "Epetra"

# Create mesh and define function space
mesh = UnitSquare(32, 32)
V = FunctionSpace(mesh, "Lagrange", 1)

# Define Dirichlet boundary (x = 0 or x = 1)
def boundary(x):
    return x[0] < DOLFIN_EPS or x[0] > 1.0 - DOLFIN_EPS

# Define boundary condition
u0 = Constant(0.0)
bc = DirichletBC(V, u0, boundary)

# Define variational problem
u = TrialFunction(V)
v = TestFunction(V)
f = Expression("10*exp(-(pow(x[0] - 0.5, 2) + pow(x[1] - 0.5, 2)) / 0.02)")
g = Expression("sin(5*x[0])")
a = inner(grad(u), grad(v))*dx
L = f*v*dx + g*v*ds

A = assemble(a)
b = assemble(L)

bc.apply(A, b)

# Both fails!
solver = LUSolver("mumps")
#solver = LUSolver("umfpack")

# Default works
#solver = LUSolver()

# Compute solution
u = Function(V)
solver.solve(A, u.vector(), b)

################
We need a unit test that iterate over all backends and possible solvers and try to solve a problem using the allowed options.

Johan Hake (johan-hake)
Changed in dolfin:
importance: Undecided → Critical
assignee: nobody → Anders Logg (logg)
milestone: none → 1.0-rc1
Revision history for this message
Anders Logg (logg) wrote :

The initialization of the solver object is now checked and an error message is displayed. Your problem is (I think) that your Epetra installation does not have UMFPACK. This bug is superseded by bug #891350.

Revision history for this message
Anders Logg (logg) wrote :

Fixed in 1.0.x-logg

Changed in dolfin:
status: New → In Progress
Anders Logg (logg)
Changed in dolfin:
status: In Progress → Fix Committed
Revision history for this message
Johan Hake (johan-hake) wrote : Re: [Bug 885569] Re: Solver method for LUSolver for Epetra backends fails

On Wednesday November 16 2011 13:06:35 Anders Logg wrote:
> The initialization of the solver object is now checked and an error
> message is displayed. Your problem is (I think) that your Epetra
> installation does not have UMFPACK. This bug is superseded by bug
> #891350.

Sounds plausible! I am just using the default dorsal installation of trilinos.
Maybe we should add:

  -D TPL_ENABLE_UMFPACK:BOOL=ON

to trilinos.package in dorsal?

Johan

Revision history for this message
Anders Logg (logg) wrote :

On Thu, Nov 17, 2011 at 05:40:02AM -0000, Johan Hake wrote:
> On Wednesday November 16 2011 13:06:35 Anders Logg wrote:
> > The initialization of the solver object is now checked and an error
> > message is displayed. Your problem is (I think) that your Epetra
> > installation does not have UMFPACK. This bug is superseded by bug
> > #891350.
>
> Sounds plausible! I am just using the default dorsal installation of trilinos.
> Maybe we should add:
>
> -D TPL_ENABLE_UMFPACK:BOOL=ON
>
> to trilinos.package in dorsal?

Sounds good to me.

What does Harish say?

--
Anders

Revision history for this message
Harish Narayanan (hnarayanan) wrote : Re: [Dorsal] [Bug 885569] Re: Solver method for LUSolver for Epetra backends fails

On 11/17/11 10:09 AM, Anders Logg wrote:
> On Thu, Nov 17, 2011 at 05:40:02AM -0000, Johan Hake wrote:
>> On Wednesday November 16 2011 13:06:35 Anders Logg wrote:
>>> The initialization of the solver object is now checked and an error
>>> message is displayed. Your problem is (I think) that your Epetra
>>> installation does not have UMFPACK. This bug is superseded by bug
>>> #891350.
>>
>> Sounds plausible! I am just using the default dorsal installation of trilinos.
>> Maybe we should add:
>>
>> -D TPL_ENABLE_UMFPACK:BOOL=ON
>>
>> to trilinos.package in dorsal?
>
> Sounds good to me.
>
> What does Harish say?

I'll add it.

Harish

Anders Logg (logg)
Changed in dolfin:
status: Fix Committed → Fix Released
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.