-
Hi all, Also, when I use PMINRES, CG or PCG, I reach the maximum iteration, and as I'm restarting from a dump file, I was wondering if it was possible to access the old gravity field in the dump file, so that I could use it to define the new field close to the correct solution on the new grid (which would make convergence faster, I suppose). Thanks in advance for the help. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Hi @Anto6453, unfortunately there is no way to guarantee that Bicgstab will always to converge without any trouble, especially when your guess is far from the the solution. With Jacobi, you're sure you will get convergence, but then it is very slow. It might be a good idea however to do the first guess with Jacobi, and then revert to Bicgstab. On the number of iterations, this can be changed in your input file using the parameter Finally, it is possible to add the potential in the restart dump to get faster convergence. I've just opened a PR (#245 ) with that specific modification which I might merge in the upcoming version if you think it improves the situation. |
Beta Was this translation helpful? Give feedback.
Hi @glesur,
The main problem I encountered with BICGSTAB is that during its iteration, the variable
rho = ComputeDotProduct(res0, res)
can become equal to zero, so that in the next step the variablebeta = rho/rhoOld
becomesnan
.When this happened, the solver would restart from a flat potential that was too far from the solution to converge correctly. I therefore followed the recommendation of this Lecture Note (ln07.pdf) which explains on page 6 that when
rho
becomes equal to (or very close to) zero, it is possible to set onlyres0
anddir
tores
(as when we initialize the solver) and continue the iteration without restarting the potential.This works well enough in my case to avoid the…