Skip to content

Interface problem from tutorial with SNES solver #14

Discussion options

You must be logged in to vote

There are two mistakes in your code:

  1. you probably copied and pasted from create_snes_solution to update_solutions, but watch out that the final line in update_solutions should read sub_solution_local[:] = x_wrapper_local instead of the other way around
  2. you are not calling self.update_solutions(x) at the very beginning of the method R, therefore the solution computed in the Newton step is never getting copied into u1, u2, l.

With these changes, I get convergence in one nonlinear iteration.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@bbbyyfff
Comment options

Comment options

You must be logged in to vote
1 reply
@bbbyyfff
Comment options

Answer selected by bbbyyfff
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants