steady: check that the homotopy_setup block is present when homotopy_mode is specified

kalman-mex
Sébastien Villemot 2023-10-06 16:07:41 -04:00
parent c3680b9f85
commit d4b6e61497
No known key found for this signature in database
GPG Key ID: 2CECE9350ECEBE4A
1 changed files with 4 additions and 0 deletions

View File

@ -39,6 +39,10 @@ Sigma_e = M_.Sigma_e;
M_.Sigma_e(:,:) = 0;
if options_.homotopy_mode ~= 0
if ~isfield(options_, 'homotopy_values')
error('STEADY: a homotopy_setup block must be present when the homotopy_mode option is specified')
end
if options_.steadystate_flag
error('STEADY: Can''t use homotopy when providing a steady state external file');
end