Skip to content

Commit

Permalink
Fix doubling of allocated memory in getFiberPropertiesFromFile
Browse files Browse the repository at this point in the history
Fix for a small bug in the doubling of allocated memory (rarely triggered because the default setting of 2GB is typically more than enough)
  • Loading branch information
koenhelwegen authored Oct 21, 2024
1 parent 57b186a commit 40ca7a6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@

fiberIndex1 = [fiberIndex1; single(zeros(size(fiberIndex1)))];
fiberIndex2 = [fiberIndex2; single(zeros(size(fiberIndex1)))];
fiberMeasures = [fiberMeasures; single(zeros(size(fiberMeasures)))];
fiberMeasures = [fiberMeasures, single(zeros(size(fiberMeasures)))];
fiberLength = [fiberLength; single(zeros(size(fiberLength)))];
fiberNumber = [fiberNumber; single(zeros(size(fiberNumber)))];
fiberMaxAngle = [fiberMaxAngle; single(zeros(size(fiberMaxAngle)))];
Expand Down

0 comments on commit 40ca7a6

Please sign in to comment.