Skip to content
Snippets Groups Projects
Commit 3ef988df authored by Johannes Pfeifer's avatar Johannes Pfeifer
Browse files
parent 5deaca99
Branches
Tags
No related merge requests found
......@@ -52,6 +52,10 @@ for i_chain = 1:n_chains
%//=====================================================//
fprintf(fh,'//== Number of states for state_variable[%d] ==//\n', ...
i_chain);
if ~isfield(options.ms.ms_chain(i_chain),'regime') ...
|| isempty(options.ms.ms_chain(i_chain).regime)
error('Chain %u does not feature any regime states. Did you forget to specify them?',i_chain)
end
n_states = length(options.ms.ms_chain(i_chain).regime);
fprintf(fh,'%d\n\n',n_states);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment