← Back to team overview

dolfin team mailing list archive

Trilinos demo

 

Hi,

Currently, demo.py in trilinos/python has the following code:
try:
   # import Trilinos stuff
   from PyTrilinos import Epetra, AztecOO, TriUtils, ML
   trilinos_installed = True

If trilinos is installed, but dolfin is built without trilinos, the demo will fail:

./../../demo/la/trilinos/python (Python)

Traceback (most recent call last):
 File "./demo.py", line 61, in <module>
   backend = EpetraFactory.instance()
NameError: name 'EpetraFactory' is not defined

I suggest we use the following try, which follows the tests from eigensolver/python:

try:
   dolfin.EpetraMatrix

ilmar