Commit cb62b607 authored by Markus Mueller-Trapet's avatar Markus Mueller-Trapet

bugfix (not greater vs less than)

parent 99b927ab
......@@ -69,7 +69,7 @@ delta = max(0,refCurve + soundReductionIndex - soundReduction);
counter = 0; % stopping criterion
% shift reference curve until limits are reached
while sum(delta) < refSurf && all(delta <= deficiencyLimit) && counter < 1e3
while sum(delta) <= refSurf && all(delta <= deficiencyLimit) && counter < 1e3
soundReductionIndex = soundReductionIndex + dbStep;
delta = max(0,refCurve + soundReductionIndex - soundReduction);
counter = counter+1;
......
......@@ -65,7 +65,7 @@ delta = max(0,NISPL - (refCurve + impactInsulationClass));
counter = 0; % stopping criterion
% shift reference curve until limits are reached
while sum(delta) < refSurf && all(delta <= deficiencyLimit) && counter < 1e3
while sum(delta) <= refSurf && all(delta <= deficiencyLimit) && counter < 1e3
impactInsulationClass = impactInsulationClass - dbStep;
delta = max(0,NISPL - (refCurve + impactInsulationClass));
counter = counter+1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment