Caused most Matlab flame simulations to fail, e.g. those using
CounterFlowDiffusionFlame.m or flame.m. Fixes regression introduced in c1067aa.
Fixes #554
17 lines
323 B
Matlab
17 lines
323 B
Matlab
function a = isFlow(d)
|
|
% ISFLOW Determine whether a domain is a flow.
|
|
% a = isFlow(d)
|
|
% :param d:
|
|
% Instance of class :mat:func:`Domain1D`
|
|
% :return:
|
|
% 1 if the domain is a flow domain, and 0 otherwise.
|
|
%
|
|
|
|
t = domainType(d);
|
|
|
|
% See Domain1D.h for definitions of constants
|
|
if t < 100
|
|
a = 1;
|
|
else
|
|
a = 0;
|
|
end
|