These changes make it unnecessary to copy header files around during the build process, which tends to confuse IDEs and debuggers. The headers which comprise Cantera's external C++ interface are now in the 'include' directory. All of the samples and demos are now in the 'samples' subdirectory.
8 lines
132 B
Matlab
Executable file
8 lines
132 B
Matlab
Executable file
function v = viscosity(a)
|
|
v = trans_get(a.id, 1);
|
|
if v == -1.0
|
|
error(geterr);
|
|
elseif v < 0.0
|
|
error('exception raised');
|
|
end
|
|
|