Skip to content

Commit ca538c8

Browse files
anthony-walkerspeth
authored andcommitted
Fix bug in adaptive preconditioner
The conditional statement for the ILUT fill factor was using the wrong variable.
1 parent 027501d commit ca538c8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/numerics/AdaptivePreconditioner.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ void AdaptivePreconditioner::initialize(size_t networkSize)
3030
if (m_drop_tol == 0) {
3131
setIlutDropTol(1e-12);
3232
}
33-
if (m_drop_tol == 0) {
33+
if (m_fill_factor == 0) {
3434
setIlutFillFactor(static_cast<int>(m_dim) / 2);
3535
}
3636
// update initialized status

0 commit comments

Comments
 (0)