Closed chriscline closed 2 years ago
In asr_process.m, the number of splits are calculated with the line:
asr_process.m
splits = ceil((C*C*S*8*8 + C*C*8*S/stepsize + C*S*8*2 + S*8*5) / (maxmem*1024*1024 - C*C*P*8*3));
However, the denominator can be negative if maxmem indicates there is insufficient memory. The following for i=1:splits loop is then skipped entirely and no processing is done, without any error or warning being printed.
maxmem
for i=1:splits
That's a good find!
I have added an error if the denominator is negative.
In
asr_process.m
, the number of splits are calculated with the line:However, the denominator can be negative if
maxmem
indicates there is insufficient memory. The followingfor i=1:splits
loop is then skipped entirely and no processing is done, without any error or warning being printed.