Skip to content

Commit

Permalink
minor fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mariosmsk committed May 26, 2023
1 parent dedb41c commit e004429
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions epanet_matlab_toolkit/epanet.m
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@

end
properties (Constant = true)
classversion='v2.2.6 - Last Update: 11/05/2023';
classversion='v2.2.6 - Last Update: 26/05/2023';

LOGOP={'IF', 'AND', 'OR'} % Constants for rule-based controls: 'IF', 'AND', 'OR' % EPANET Version 2.2
RULEOBJECT={'NODE', 'LINK', 'SYSTEM'}; % Constants for rule-based controls: 'NODE', 'LINK', 'SYSTEM' % EPANET Version 2.2
Expand Down Expand Up @@ -4543,8 +4543,10 @@ function apiMSXMatlabCleanup(obj)
%Open the file
[obj.Errcode] = obj.apiMSXopen(obj);
if obj.Errcode, warning(obj.getMSXError(obj.Errcode)); end
if any(strcmpi(varargin{1}, loadfile_options))
return
if ~isempty(varargin)
if any(strcmpi(varargin{1}, loadfile_options))
return
end
end
obj.MSXEquationsTerms = obj.getMSXEquationsTerms;
obj.MSXEquationsPipes = obj.getMSXEquationsPipes;
Expand Down

0 comments on commit e004429

Please sign in to comment.