Added consistency test between INIT__ and FREQ__.

time-shift
Stéphane Adjemian (Charybdis) 2013-10-16 12:05:39 +02:00
parent fb08f5c133
commit 73df682eb8
2 changed files with 8 additions and 0 deletions

View File

@ -55,6 +55,10 @@ else
freq = 1;
end
if ~isequal(freq,init.freq)
error('load_m_file_data: INIT__ and FREQ__ are not consistent!')
end
if exist('NAMES__','var')
varlist0 = NAMES__;
clear('NAMES__');

View File

@ -53,6 +53,10 @@ else
freq = 1;
end
if ~isequal(freq,init.freq)
error('load_mat_file_data: INIT__ and FREQ__ are not consistent!')
end
if isfield(datafile,'NAMES__')
varlist = datafile.NAMES__;
datafile = rmfield(datafile, 'NAMES__');