Skip to content
Snippets Groups Projects
Verified Commit 6b44e08d authored by Sébastien Villemot's avatar Sébastien Villemot
Browse files

steady: add check over the value of homotopy_mode option

parent 7f6f66c1
Branches
Tags
No related merge requests found
......@@ -38,6 +38,10 @@ Sigma_e = M_.Sigma_e;
% Set M_.Sigma_e=0 (we compute the *deterministic* steady state)
M_.Sigma_e(:,:) = 0;
if ~ismember(options_.homotopy_mode, [0 1 2 3])
error('STEADY: invalid value for homotopy_mode option')
end
if isfield(options_, 'homotopy_values') && options_.homotopy_mode == 0
warning('STEADY: a homotopy_setup block is present but homotopy will not be performed because homotopy_mode option is equal to 0')
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment