Skip to content

Commit

Permalink
[Matlab] Check that Reactor contents are Solution objects
Browse files Browse the repository at this point in the history
Fix documentation error that incorrectly indicated that Mixture objects could
also be used.
  • Loading branch information
speth committed Feb 15, 2018
1 parent 322b1fc commit a22db9f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions interfaces/matlab/toolbox/@Reactor/Reactor.m
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
% :mat:func:`IdealGasConstPressureReactor`, :mat:func:`ConstPressureReactor`
%
% :param contents:
% Instance of class :mat:func:`Solution` or :mat:func:`Mixture`
% representing the contents of the reactor
% Instance of class :mat:func:`Solution` representing the contents of the
% reactor
% :param typ:
% Integer, reactor type. Options are:
%
Expand Down Expand Up @@ -49,4 +49,6 @@

if isa(contents, 'Solution')
insert(x, contents);
elseif ~(isa(contents, 'double') && contents == 0)
error('Reactor contents must be an object of type "Solution"')
end

0 comments on commit a22db9f

Please sign in to comment.