Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Why do some Krylov methods seem to print two residual norms per iteration?

0
Posted

Why do some Krylov methods seem to print two residual norms per iteration?

0

> 1198 KSP Residual norm 1.366052062216e-04 > 1198 KSP Residual norm 1.931875025549e-04 > 1199 KSP Residual norm 1.366026406067e-04 > 1199 KSP Residual norm 1.931819426344e-04 Some Krylov methods, for example tfqmr, actually have a “sub-iteration” of size 2 inside the loop; each of the two substeps has its own matrix vector product and application of the preconditioner and updates the residual approximations. This is why you get this “funny” output where it looks like there are two residual norms per iteration. You can also think of it as twice as many iterations.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123