Skip to content

Bugfix in the non-batchified CG linear solver.

Nicolas Tancogne-Dejean requested to merge fix_cg_tolerance into hotfix-10.3

Description

Bugfix in the non-batchified CG linear solver.

The code was wrongly using the square of the norm instead of the norm to compare to the tolerance and for the value of the residue. Now, all the linear solvers refer to the same norm for stopping the iterations.

The default value for PoissonSolverThreshold is also changed.

News snippet

Bugfix in the non-batchified CG linear solver.

Checklist

  • I have checked that my code follows the Octopus coding standards
  • I have added tests for all the new features added in this request.

Merge request reports