Set small alq to zero

This commit is contained in:
Svenn Tveit 2024-10-22 08:59:07 +02:00 committed by Tor Harald Sandve
parent 30259aca87
commit 29cb332f72

View File

@ -204,7 +204,7 @@ addOrSubtractAlqIncrement_(Scalar alq, bool increase) const
limited = true;
}
} else {
if (alq < 0) {
if (alq < 1e-12) {
alq = 0.0;
limited = true;
}