Failed to successfully call PETSc function 'KSPSolve'. PETSc error code is: 73, Object is in wrong state

You are redefining w_coupled here, meaning that the automatically computed Jacobian is singular. Please remove this definition.

Secondly, please note that we cannot run your code as you haven’t provided a mesh.

1 Like