← Back to team overview

dolfin team mailing list archive

Re: [Bug 661342] Re: Importing PyTrilinos can cause MPI crash

 

On Friday October 15 2010 10:35:31 Garth Wells wrote:
> Yes.
> 
> I think that the problem is with which library is initialising and
> finalising MPI.

I do not see that the import sequence makes any difference. If you have 
created a PETSc object _and_ you load PyTrilinos in what ever order, I get the 
error when ening the Python session.

Why would you like to use both PyTrilinos and a PETSc object?

Also I know to little about the initialization/finalization of MPI to suggest 
any solution. But I guess that when the PETScVEctor is created, MPI is 
initialized by DOLFIN. DOLFIN then also finalize MPI which might interfere 
with PyTrilinos doing the same? 

Johan

-- 
Importing PyTrilinos can cause MPI crash
https://bugs.launchpad.net/bugs/661342
You received this bug notification because you are a member of DOLFIN
Team, which is subscribed to DOLFIN.

Status in DOLFIN: New

Bug description:
The import order appears to be very important with PyTrlinos, and can cause some MPI problems. 
In the below code, order doesn't help. The program just crashes.

from PyTrilinos import Epetra
from dolfin import *
parameters["linear_algebra_backend"] = "Epetra"
xx = PETScVector(20)





Follow ups

References