Thanks a lot. It works now.

I have another question about using Trilinos in Fenics for nonlinear
problem. I choose the linear solver for the Newton solver and it will not
converge. While the equation can be efficiently solved with PETSC. How to
set the parameters for Trilinos solver in a nonlinear Newtonsolver?

Thanks.

Best,
Teng


2014-05-30 6:35 GMT-04:00 Johannes Ring <[email protected]>:

> On Fri, May 30, 2014 at 4:01 AM, 腾张 <[email protected]> wrote:
> > I tried to run the demo_trilinos.py and got the following error
> >
> > "Traceback (most recent call last):
> >   File "demo_trilinos.py", line 27, in <module>
> >     from dolfin import *
> >   File
> >
> "/gpfs/runtime/opt/fenics/1.3.0+mvapich2-2.0rc1/lib/python2.7/site-packages/dolfin/__init__.py",
> > line 16, in <module>
> >     import cpp
> >   File
> >
> "/gpfs/runtime/opt/fenics/1.3.0+mvapich2-2.0rc1/lib/python2.7/site-packages/dolfin/cpp/__init__.py",
> > line 42, in <module>
> >     exec("import %s" % module_name)
> >   File "<string>", line 1, in <module>
> >   File
> >
> "/gpfs/runtime/opt/fenics/1.3.0+mvapich2-2.0rc1/lib/python2.7/site-packages/dolfin/cpp/common.py",
> > line 32, in <module>
> >     _common = swig_import_helper()
> >   File
> >
> "/gpfs/runtime/opt/fenics/1.3.0+mvapich2-2.0rc1/lib/python2.7/site-packages/dolfin/cpp/common.py",
> > line 28, in swig_import_helper
> >     _mod = imp.load_module('_common', fp, pathname, description)
> > ImportError: libml.so.11: cannot open shared object file: No such file or
> > directory"
> >
> > I can use the PETSC solver. Could anyone help me to figure out what's
> > possible reason for this?
>
> You need to add the location of libml.so.11 to LD_LIBRARY_PATH. If for
> instance Trilinos is installed in ~/Work/FEniCS, then you should do:
>
>   export LD_LIBRARY_PATH=~/Work/FEniCS:$LD_LIBRARY_PATH
>
> Johannes
>
_______________________________________________
fenics mailing list
[email protected]
http://fenicsproject.org/mailman/listinfo/fenics

Reply via email to