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

Reason: PETSc error code is: 60

+1 vote

Hi all,

I'm solving a non linear variational problem with snes solver in Fenicse 2017.1.0 and get this error:

RuntimeError: 

*** -------------------------------------------------------------------------
*** DOLFIN encountered an error. If you are not able to resolve this issue
*** using the information listed below, you can ask for help at
***
***     fenics-support@googlegroups.com
***
*** Remember to include the error message listed below and, if possible,
*** include a *minimal* running example to reproduce the error.
***
*** -------------------------------------------------------------------------
*** Error:   Unable to successfully call PETSc function 'SNESSetFromOptions'.
*** Reason:  PETSc error code is: 60 (Nonconforming object sizes).
*** Where:   This error was encountered inside /tmp/src/dolfin/dolfin/nls/PETScSNESSolver.cpp.
*** Process: 0
*** 
*** DOLFIN version: 2017.1.0
*** Git changeset:  3d1f687ec9ee39afc0fe6e01800431995b42ad04
*** -------------------------------------------------------------------------

The snes solver I'm using is

snes_solver_parameters_bounds = {"nonlinear_solver": "snes",
                      #"reset_jacobian":True,
                      "symmetric": True,
                      "snes_solver": {"maximum_iterations": 100,
                                      "linear_solver": "cg",
                                      "preconditioner": "hypre_amg",
                                      "report": False,
                                      "line_search": "basic",
                                      "method":"vinewtonrsls",
                                      "absolute_tolerance":1e-3,
                                      "relative_tolerance":1e-3,
                                      "krylov_solver": {"absolute_tolerance":1e-3,
                                                        "relative_tolerance":1e-3},
                                      "lu_solver": {"reuse_factorization": False}}}

I tried to use different linear solver and preconditioner parameters inside the snes solver, but got the same error in the end. Furthermore, I found that if I loose the tolerance from 1e-3 to 1e-2 it run more steps, but eventually failed with the same error.

Any thoughts to fix this problem?

Thank you in advance.

asked Jul 10, 2017 by Wilhelm FEniCS Novice (410 points)
edited Jul 10, 2017 by Wilhelm

Hi, if you don't get any help here you might try the PETSc mailing list. There was at least one similar thread:
https://lists.mcs.anl.gov/mailman/htdig/petsc-users/2015-February/024499.html
https://lists.mcs.anl.gov/mailman/htdig/petsc-users/2015-March/024528.html

...