-
Notifications
You must be signed in to change notification settings - Fork 241
Replace IterativeSolvers.jl by Krylov.jl #3778
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
Conversation
The error with the test set |
Hello, @amontoison. Nice work. Do you see a performance improvement when switching to this package? |
Hi @simone-silvestri, Also, to the best of my knowledge, only I'll try to run some benchmarks before the end of the week. |
d06773e
to
14a6489
Compare
@simone-silvestri can we remove the matrix solver? I don't think we use it anymore and it will help us move forward. |
We can remove the dependency on |
I can remove it. I ll open a PR. I can merge it next week, however, it is still our default implicit solver for non-rectilinear grids, so I suggest a bit of benchmarking before merging the PR |
@simone-silvestri I close the PR. |
Well, we can also try switching the implementation to Krylov over here and seeing the results. |
I benchmarked a few times |
-> https://github.com/CliMA/Oceananigans.jl/blob/main/src/Solvers/conjugate_gradient_solver.jl#L194 |
that's a good idea! Thanks for the suggestion, let's try it out. I think there are still performance problems with our custom pcg solver, that is why I am a bit cautious in removing completely the other implementation. If we do so before fixing our pcg, we will not be able to compare our custom implementation anymore. |
@simone-silvestri I think it is a bad infrastructure strategy to keep around lots of methods. Performance at the present is not that important, what matters far more is the direction we want to go with the code. |
No description provided.