Skip to content

Commit

Permalink
remove global CFG
Browse files Browse the repository at this point in the history
  • Loading branch information
SarahAlidoost committed Oct 17, 2023
1 parent dff5a20 commit e5dee16
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/STEMMUS_SCOPE.m
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,12 @@
pkg load statistics io;
end

% Read the configPath file. Due to using MATLAB compiler, we cannot use run(CFG)
global CFG
if isempty(CFG)
% set CFG to a path if it is not defined
if exist('CFG','var') == 0
CFG = '../config_file_crib.txt';
end

% Read the configPath file. Due to using MATLAB compiler, we cannot use run(CFG)
disp (['Reading config from ', CFG]);
[InputPath, OutputPath, InitialConditionPath] = io.read_config(CFG);

Expand Down

0 comments on commit e5dee16

Please sign in to comment.