We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d4ed967 commit a1028b5Copy full SHA for a1028b5
cpp/memilio/epidemiology/damping.h
@@ -609,8 +609,6 @@ void Dampings<S>::update_active_dampings(
609
});
610
//remove active with the same type and level and add new one
611
get<MatrixIdx>(sum_same_level) += get<MatrixIdx>(damping) - get<MatrixIdx>(active_same_type).get();
612
- //avoid negative values due to rounding error if e.g. a previous damping is lifted
613
- get<MatrixIdx>(sum_same_level) = get<MatrixIdx>(sum_same_level).cwiseMax(0.);
614
get<MatrixIdx>(active_same_type) = get<MatrixIdx>(damping);
615
}
616
else {
0 commit comments