Skip to content

Commit

Permalink
bugFix negative distance for spot size correction in air.
Browse files Browse the repository at this point in the history
  • Loading branch information
remocristoforetti committed Jun 21, 2023
1 parent 99eaa34 commit bffb834
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions matRad_MCemittanceBaseData.m
Original file line number Diff line number Diff line change
Expand Up @@ -511,6 +511,11 @@
%make sure to not violate ranges!
%this is a little hardcoded, but helps us handle strange
%distances in the initFocus field
if d < min(depths)
d = min(depths);
matRad_cfg.dispWarning('Spot Size Air Correction problem, negative distance found!',method);
end

if d > max(depths)
d = max(depths);
matRad_cfg.dispWarning('Spot Size Air Correction problem, distance too large!',method);
Expand Down

0 comments on commit bffb834

Please sign in to comment.