Added Cantera error identifiers.

This commit is contained in:
ssun30 2023-05-25 18:43:29 -04:00 committed by Ray Speth
parent aec7e17664
commit 40a9373176
2 changed files with 3 additions and 3 deletions

View File

@ -8,7 +8,7 @@ function output = ctFunc(varargin)
output = calllib(ctLib, funcName, varargin{2:end}); output = calllib(ctLib, funcName, varargin{2:end});
if ismember(output, errorcode) if ismember(output, errorcode)
error(ctGetErr); error('Cantera:ctError', ctGetErr);
end end
end end

View File

@ -14,11 +14,11 @@ function output = ctString(varargin)
output = bb; output = bb;
clear aa bb ptr; clear aa bb ptr;
else else
error(ctGetErr); error('Cantera:ctError', ctGetErr);
end end
if iok == -err1 if iok == -err1
error(ctGetErr); error('Cantera:ctError', ctGetErr);
end end
end end