mirror of
https://github.com/Cantera/cantera.git
synced 2025-02-25 18:55:29 -06:00
Added Cantera error identifiers.
This commit is contained in:
parent
aec7e17664
commit
40a9373176
@ -8,7 +8,7 @@ function output = ctFunc(varargin)
|
||||
output = calllib(ctLib, funcName, varargin{2:end});
|
||||
|
||||
if ismember(output, errorcode)
|
||||
error(ctGetErr);
|
||||
error('Cantera:ctError', ctGetErr);
|
||||
end
|
||||
|
||||
end
|
||||
|
@ -14,11 +14,11 @@ function output = ctString(varargin)
|
||||
output = bb;
|
||||
clear aa bb ptr;
|
||||
else
|
||||
error(ctGetErr);
|
||||
error('Cantera:ctError', ctGetErr);
|
||||
end
|
||||
|
||||
if iok == -err1
|
||||
error(ctGetErr);
|
||||
error('Cantera:ctError', ctGetErr);
|
||||
end
|
||||
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user