Skip to content

Commit

Permalink
assert
Browse files Browse the repository at this point in the history
  • Loading branch information
jmlarson1 committed Apr 29, 2024
1 parent c6c257f commit 4f67bf3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pounders/m/pounders.m
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
Prior.nfs = 0;
Prior.X_init = [];
Prior.F_init = [];
Prior.aux_init = {};
Prior.aux_init = {};
Prior.xk_in = 1;
end

Expand Down Expand Up @@ -73,6 +73,8 @@

if ~isfield(Model, 'Ffun_nargout')
Model.Ffun_nargout = 1;
else
assert(Model.Ffun_nargout == 1 || Model.Ffun_nargout == 2, "Ffun_nargout must be 1 or 2");
end

if ~isfield(Model, 'np_max')
Expand Down

0 comments on commit 4f67bf3

Please sign in to comment.