[kernel] set w and z to zero if we don't keep the y and lambda state
@@ -787,6 +787,11 @@ bool LinearOSNS::preCompute(double time)
}
}
}
+ else
+ {
+ _w->zero();
+ _z->zero();
+ }
}
// else
// nothing to do (IsLinear and not changed)
