-
Notifications
You must be signed in to change notification settings - Fork 8
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
Diocotron error with Gingko #86
Comments
How many iterations does the linear solver do ? |
I don't know very well Gingko. I guess it is a parameter in Gingko, I just see |
You have the possibility to check the iterations number by activating the logger. there is a boolean you can set to true when instantiating the PS: You can try to solve this issue by increasing the maximum number of iterations. |
Yes, it seems to not fail when we set |
Doesn't it mean the condition number is high ? Could we find a better preconditioner ? |
@tpadioleau the preconditinner used is Jacobi. It was the only one availiable. IMO it would be better to rely on kokkos kernels solvers. They released batched version of CG. |
How do you think it would help to use Kokkos Kernels ? Regarding Ginkgo, do you know if the version 1.9 has other preconditioners ? |
For several reasons.
|
On the overall I think I can agree but I want to point out that it will not avoid the work of finding adapted preconditioners and stopping criteria. |
Thank you for these precisions |
Ok thanks! |
For indications, here are the numbers of iterations needed for the simulation I mentionned: (for the 700th time step, around 1900 iterations in the Poisson solver were needed.) The modifications I made are on the branch |
Looking at the residual, to me it looks converged. It is possible that the last 1000 iterations are not increasing much the residual. It could be that the tolerance requested is too strict. A colleague once told me that a rule of thumb to select the value of the tolerance is roughly the machine precision divided by the condition number of the matrix. |
I have found an interesting feature in ginkgo CMakeLists, |
@AbdelhadiKara What kind of optimization can we expect from this option ? |
I have found at least two things if this option is activated:
|
An error with Gingko appears while running the diocotron simulation:
It does not appears for
It does appears for
The simulation can be a bit non-smooth. Here is the density at t = 50 for ( Czarny mapping with a grid of 128x256)

The text was updated successfully, but these errors were encountered: