mirror of
https://github.com/Cantera/cantera.git
synced 2025-02-25 18:55:29 -06:00
[matlab] Use reactor_setSolution in experimental toolbox
This commit is contained in:
parent
3bc6a4befe
commit
e70790adbe
@ -130,11 +130,7 @@ classdef Reactor < handle
|
||||
error('Wrong object type');
|
||||
end
|
||||
|
||||
ctFunc('reactor_setThermoMgr', r.id, content.tpID);
|
||||
|
||||
if ~strcmp(r.type, 'Reservoir')
|
||||
ctFunc('reactor_setKineticsMgr', r.id, content.kinID);
|
||||
end
|
||||
ctFunc('reactor_setSolution', r.id, content.phaseID);
|
||||
|
||||
elseif ~(isa(content, 'double') && content == 0)
|
||||
error('Reactor contents must be an object of type "Solution"');
|
||||
|
Loading…
Reference in New Issue
Block a user