Closed Andres-MG closed 10 months ago
The corner case when the solution to be limited is constant was not properly handled. Now, the solution is only rescaled when the average and minimum values are different, avoiding div-by-zero errors and saving some computations.
The corner case when the solution to be limited is constant was not properly handled. Now, the solution is only rescaled when the average and minimum values are different, avoiding div-by-zero errors and saving some computations.