Skip to content

Commit

Permalink
changes default preconditioner threshold to zero
Browse files Browse the repository at this point in the history
  • Loading branch information
kyleniemeyer committed Jul 28, 2022
1 parent b86674c commit 4c767e1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/cantera/numerics/AdaptivePreconditioner.h
Expand Up @@ -122,7 +122,7 @@ class AdaptivePreconditioner : public PreconditionerBase

//! Minimum value a non-diagonal element must be to be included in
//! the preconditioner
double m_threshold = 1e-8;
double m_threshold = 0.0;

//! Bool set whether to prune the matrix or not
double m_prune_precon = true;
Expand Down
2 changes: 1 addition & 1 deletion interfaces/cython/cantera/preconditioners.pyx
Expand Up @@ -33,7 +33,7 @@ cdef class AdaptivePreconditioner(PreconditionerBase):
Update the threshold to a desired value as:
>>> precon.threshold = 1e-8
Default is 1e-8.
Default is 0.0.
"""
def __get__(self):
return self.preconditioner.threshold()
Expand Down

0 comments on commit 4c767e1

Please sign in to comment.