Skip to content

Commit

Permalink
Cleanup of how V-prime calculation is done.
Browse files Browse the repository at this point in the history
  • Loading branch information
lazersos committed Apr 11, 2024
1 parent 76e0d42 commit c70c822
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions BEAMS3D/beams3d_volume.m
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@
if isempty(ns)
ns = double(beam_data.ns_prof1);
end
ds = 1./(ns);
edges = 0:ds:1;
edges = linspace(0,1,ns+1);
ds = diff(edges(1:2));
s = 0.5.*(edges(1:end-1)+edges(2:end));

% Create profile
Expand Down

0 comments on commit c70c822

Please sign in to comment.