Skip to content

Commit

Permalink
remove calculation of geometric depths when not needed for particle e…
Browse files Browse the repository at this point in the history
…ngines
  • Loading branch information
wahln committed Dec 26, 2023
1 parent 3d218c1 commit 8ee2b25
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ function setDefaults(this)
currBeam.ixRadDepths, ...
lateralRayCutOff);

%ray.geoDepths = currBeam.geoDepths{1}(ix); %we don't need that
ray.radDepths = currBeam.radDepths{1}(ix);
%ray.geoDepths = cellfun(@(rD) rD(ix),currBeam.geoDepths,'UniformOutput',false); %Not needed for this engine
ray.radDepths = cellfun(@(rD) rD(ix),currBeam.radDepths,'UniformOutput',false);
ray.ix = currBeam.ixRadDepths(ix);
ray.subIxVdoseGrid = currBeam.subIxVdoseGrid(ix);
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ function chooseLateralModel(this)
currBeam.ixRadDepths, ...
lateralRayCutOff);

ray.geoDepths = cellfun(@(rD) rD(ix),currBeam.geoDepths,'UniformOutput',false);
%ray.geoDepths = cellfun(@(rD) rD(ix),currBeam.geoDepths,'UniformOutput',false); %usually not needed for particle beams
ray.radDepths = cellfun(@(rD) rD(ix),currBeam.radDepths,'UniformOutput',false);
ray.ix = currBeam.ixRadDepths(ix);
ray.subIxVdoseGrid = currBeam.subIxVdoseGrid(ix);
Expand Down

0 comments on commit 8ee2b25

Please sign in to comment.