-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improving PETSc SNES support #45
Comments
Hi @amartinhuertas ! I have been looking at the implementation of In particular, specializations of The same idea applies for linear solvers. See for instance the struct PETScLinearSolver{F} <: LinearSolver
setup::F
comm::MPI.Comm
end
that only contains minimal information about the method to be used (encoded in the setup function). In the future we can even remove We need to implement the |
Ok, that makes sense. I will do it. |
Another minor fix. Add GridapPETSc.jl/src/PETScNonlinearSolvers.jl Line 179 in 3ba0de4
The nonlinear solvers can be used either as cache = solve!(x,op)
cache = solve!(x,op,cache) or cache = nothing
cache = solve!(x,op,cache)
cache = solve!(x,op,cache) |
Done. |
At present the current implementation of PETScNonLinearSolver is not fully optimized. These are the main problems.
Besides,
The text was updated successfully, but these errors were encountered: