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.
10 lines
No EOL
218 B
Matlab
10 lines
No EOL
218 B
Matlab
function setValveCoeff(f, k)
|
|
% SETVALVECOEFF - set valve coefficient
|
|
%
|
|
if f.type ~= 3
|
|
error('Valve coefficient can only be set for valves')
|
|
end
|
|
ok = flowdevicemethods(4, f.index, k);
|
|
if ok < 0
|
|
error(geterr);
|
|
end |