← Back to team overview

fenics team mailing list archive

Re: preconditioner in demos

 

On Mon, Feb 4, 2013 at 12:22 PM, Johannes Ring <johannr@xxxxxxxxx> wrote:
On Fri, Feb 1, 2013 at 2:15 PM, Roland Siegbert
<roland.siegbert@xxxxxxxxx> wrote:
Dear Fenics,

after following this:

http://fenicsproject.org/documentation/dolfin/1.1.0/python/demo/pde/navier-stokes/python/documentation.html

I think this, doesn't work anymore:

# Use amg preconditioner if available
prec = "amg" if has_krylov_solver_preconditioner("amg") else "default"

Can you be a bit more specific? What is the error message you get?
I'm very sorry, but I forgot the exact error message. However, the
demo in /usr/share/fenics didn't contain that line at all and I simply
used the file there. I remember that the the calling function had
"amg" as argument per default later. That was the solution. No
wrapping call using has_krylov_solver_preconditioner anymore.

Thanks for the immediate reply,

Roland


PS: I'll have a look at it at the weekend and can recreate it maybe then.


References