Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
SCDDS-core
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SPC
SCDDS
SCDDS-core
Commits
839bff31
Commit
839bff31
authored
4 years ago
by
Federico Felici
Browse files
Options
Downloads
Patches
Plain Diff
replace calls to SCDconf_setSIMconf _setCODEconf
new call to SCDconf_setConf('SIM') or 'CODE'
parent
4a5241b0
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
code/classes/SCD.m
+1
-1
1 addition, 1 deletion
code/classes/SCD.m
code/classes/SCDclass_expcode.m
+2
-2
2 additions, 2 deletions
code/classes/SCDclass_expcode.m
code/tests/SCDalgo_test.m
+1
-1
1 addition, 1 deletion
code/tests/SCDalgo_test.m
tests/test_expcodes.m
+1
-1
1 addition, 1 deletion
tests/test_expcodes.m
with
5 additions
and
5 deletions
code/classes/SCD.m
+
1
−
1
View file @
839bff31
...
...
@@ -13,7 +13,7 @@ classdef SCD
% Creating the experimental code container class
SCDexps
=
SCD
.
getexpcodecontainer
();
H
=
SCDexps
.
getbymaincode
(
expcode
);
SCDconf_set
SIMconf
;
% set conf for simulation
SCDconf_set
Conf
(
'SIM'
)
;
% set conf for simulation
end
function
H
=
init
(
expcode
)
...
...
This diff is collapsed.
Click to expand it.
code/classes/SCDclass_expcode.m
+
2
−
2
View file @
839bff31
...
...
@@ -359,7 +359,7 @@ classdef SCDclass_expcode
end
function
sim
(
~
,
varargin
)
SCDconf_set
SIMconf
SCDconf_set
Conf
(
'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_setC
ODEc
onf
(
'
configurationSettings
CODE
icc
'
)
SCDconf_setConf
(
'CODE'
)
;
% Build
try
...
...
This diff is collapsed.
Click to expand it.
code/tests/SCDalgo_test.m
+
1
−
1
View file @
839bff31
...
...
@@ -11,7 +11,7 @@ classdef SCDalgo_test < matlab.unittest.TestCase
end
function
setup_conf
(
testCase
)
testCase
.
assertWarningFree
(
@
()
SCDconf_set
SIMconf
);
testCase
.
assertWarningFree
(
@
()
SCDconf_set
Conf
(
'SIM'
)
);
end
function
setup_algo
(
testCase
)
...
...
This diff is collapsed.
Click to expand it.
tests/test_expcodes.m
+
1
−
1
View file @
839bff31
...
...
@@ -26,7 +26,7 @@ classdef test_expcodes < matlab.unittest.TestCase
% get SCD experimental code object container
testCase
.
SCDexps
=
SCDconf_createexpcodes
;
SCDconf_set
SIMconf
;
% set ConfigurationSettings for Simulation
SCDconf_set
Conf
(
'SIM'
)
;
% set ConfigurationSettings for Simulation
end
function
setup_expcode
(
testCase
,
expcode
,
shote
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment