I’m not a TAO expert, you’ll have to try different methods. Also, I still don’t know what you are trying to solve exactly, so it’s difficult for me to give you precise pointers. SNESSolve either solves F(x) = 0, or F(x) = b. You are free to put what you want in the output vector, but this acts as an initial guess for nonlinear solves, so it’s best to use something not too far from the solution otherwise your Newton may never converge.
prj
21
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Call PETSc matrix operator MatDiagonalSet (…) | 38 | 2090 | June 3, 2024 | |
| Poisson equation with lagrange multiplier using PETSc | 5 | 1062 | February 27, 2023 | |
| Lagrange multiplier for Dirichlet boundary condition | 30 | 1235 | June 21, 2023 | |
| Two Different PDE solvers give different answers | 17 | 1326 | January 12, 2021 | |
| Oldroyd-B model freefem++ code bugs and issues: Assertion fail | 7 | 250 | February 28, 2025 |