This is a read only copy of the old FEniCS QA forum. Please visit the new QA forum to ask questions

How to call PETScSNESSolver?

0 votes

Hi all,

I am running FEniCS 1.5 (MacOS precompiled binaries), and I can't find a way to call PETScSNESSolver.

I tried:

import dolfin
help(dolfin.PETScSNESSolver)

and

import dolfin
help(dolfin.cpp.la.PETScSNESSolver)

But I get the error

Traceback (most recent call last): File "", line 1, in
AttributeError: 'module' object has no attribute
'PETScSNESSolver'

in both cases.

Is there a way I can call PETScSNESSolver from NonlinearVariationalSolver by passing some additional parameters?

asked Dec 21, 2015 by umberto FEniCS User (6,440 points)

Hi, I'm running FEniCS development version on MacOS, using docker : https://dl.dropboxusercontent.com/u/77091853/docker-poster-final.pdf, this works :

import dolfin
help(dolfin.PETScSNESSolver)

Hi Claire,

Thanks a lot for your answer.
I have also tried with FEniCS 1.6 and it works.

I believe it is some issue with the 1.5 version.

...