Bug fixes.

Introduced when we increased the size of the mat files saved on
disk (see commit #e2942662479f822cd4ca1251158f0b5037c3a446).
time-shift
Stéphane Adjemian (Hermes) 2016-06-16 11:15:22 +02:00
parent 64d01a806e
commit a91e4dec75
1 changed files with 1 additions and 0 deletions

View File

@ -57,6 +57,7 @@ NumberOfElementsPerFile = ceil(options_.MaxNumberOfBytes/NumberOfParameters/Numb
if NumberOfSimulations <= NumberOfElementsPerFile
TableOfInformations = [ 1 , NumberOfSimulations , 1] ;
NumberOfFiles = 1;
else
NumberOfFiles = ceil(NumberOfSimulations/NumberOfElementsPerFile) ;
NumberOfElementsInTheLastFile = NumberOfSimulations - NumberOfElementsPerFile*(NumberOfFiles-1) ;