PETSc error code is: 60 (Nonconforming object sizes)

3 months ago by

fenics 2017.2 throws the following error, while 2016 only threw a warning (the same code ran perfectly fine under 2016):

*** -------------------------------------------------------------------------

*** DOLFIN encountered an error. If you are not able to resolve this issue

*** using the information listed below, you can ask for help at




*** 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 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_math_dolfin/dolfin/work/2017.2.0/dolfin/nls/PETScSNESSolver.cpp.

*** Process: 0


*** DOLFIN version: 2017.2.0

*** Git changeset:

*** -------------------------------------------------------------------------
Community: FEniCS Project
Could be a regression in DOLFIN. But it's impossible to debug without an MWE.
written 3 months ago by Jan Blechta  
A working example can be checkout via git:

and then run

$ python
written 3 months ago by Andy Aschwanden  
That's not an MWE - it has 700 lines of code. We don't have resources to look for bugs/regressions in FEniCS manifested by complicated application codes.
written 3 months ago by Jan Blechta  
Please login to add an answer/comment or follow this question.

Similar posts:
Search »