Skip to content

Fix residual calculation#102

Merged
mberto79 merged 7 commits intomainfrom
HM/Fix-L2-norm-residual-calculation
Feb 19, 2026
Merged

Fix residual calculation#102
mberto79 merged 7 commits intomainfrom
HM/Fix-L2-norm-residual-calculation

Conversation

@mberto79
Copy link
Owner

This PR fixes an error in the calculation of the residuals. The previous implementation introduced a dependency to the mesh size proportional to 1/squrt(n), which resulted in very low residual values as the number of grid cells is increased. This PR corrects the calculation. User may need to increase convergence criteria values. However, the underlying behaviour of the solvers does not change.

@mberto79 mberto79 merged commit 9e5b343 into main Feb 19, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant