Skip to content
Snippets Groups Projects
Commit 839bff31 authored by Federico Felici's avatar Federico Felici
Browse files

replace calls to SCDconf_setSIMconf _setCODEconf

new call to SCDconf_setConf('SIM') or 'CODE'
parent 4a5241b0
No related branches found
No related tags found
No related merge requests found
......@@ -13,7 +13,7 @@ classdef SCD
% Creating the experimental code container class
SCDexps = SCD.getexpcodecontainer();
H = SCDexps.getbymaincode(expcode);
SCDconf_setSIMconf; % set conf for simulation
SCDconf_setConf('SIM'); % set conf for simulation
end
function H=init(expcode)
......
......@@ -359,7 +359,7 @@ classdef SCDclass_expcode
end
function sim(~,varargin)
SCDconf_setSIMconf
SCDconf_setConf('SIM')
myslx = SCDclass_expcode.getslxname(varargin{:});
fprintf('Simulating %s.slx\n',myslx)
sim(myslx)
......@@ -399,7 +399,7 @@ classdef SCDclass_expcode
assert(~isempty(getenv('RTCCODE_LIBPATH')),'RTCCODE_LIBPATH environment variable needs to be defined to compile');
% set configuration settings for compilation
SCDconf_setCODEconf('configurationSettingsCODEicc')
SCDconf_setConf('CODE');
% Build
try
......
......@@ -11,7 +11,7 @@ classdef SCDalgo_test < matlab.unittest.TestCase
end
function setup_conf(testCase)
testCase.assertWarningFree(@() SCDconf_setSIMconf);
testCase.assertWarningFree(@() SCDconf_setConf('SIM'));
end
function setup_algo(testCase)
......
......@@ -26,7 +26,7 @@ classdef test_expcodes < matlab.unittest.TestCase
% get SCD experimental code object container
testCase.SCDexps = SCDconf_createexpcodes;
SCDconf_setSIMconf; % set ConfigurationSettings for Simulation
SCDconf_setConf('SIM'); % set ConfigurationSettings for Simulation
end
function setup_expcode(testCase,expcode,shote)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment