Skip to content

fix absolute tolerance for solvers - #375

Open
Fuad-HH wants to merge 2 commits into
SCOREC:developfrom
Fuad-HH:fix-abs-tol
Open

fix absolute tolerance for solvers#375
Fuad-HH wants to merge 2 commits into
SCOREC:developfrom
Fuad-HH:fix-abs-tol

Conversation

@Fuad-HH

@Fuad-HH Fuad-HH commented Sep 1, 2026

Copy link
Copy Markdown
Collaborator

I was using pcms with XGC and the projected values were incorrect since the real values were less than this tolerance. For example, the temperature is field shown here is wrong because internally, it is represented in the unit J and the values are about 1e-19.

I have changed this to 1e-50 because petsc uses this as the default values for its solvers. Ref [here].(https://petsc.org/release/manual/ksp/#:~:text=The%20user%20can%20retain,%2Dksp_max_it%20maxit.)

tmp-18396-giv6l4MYcH8b-neutrals_plot

I will rebase this branch onto master when my other pull request gets merged: #374.

Note that there are other tolerances too. I guess they also need to be fixed, for example the interpolation ones. @abhiyanpaudel, @jacobmerson, could you let me know if I should fix them or not.

it helps converge fields of very small magnitude
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.

2 participants