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
bf119b72
"README.md" did not exist on "871eefcce152ec5d3002ed6feb7c70950de15dc2"
Commit
bf119b72
authored
3 years ago
by
Cristian Galperti
Committed by
Federico Felici
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
SCDclasses modified accordingly
parent
af7c38cc
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
code/classes/SCDclass_expcode.m
+11
-5
11 additions, 5 deletions
code/classes/SCDclass_expcode.m
code/classes/SCDclass_mdsobjcontainer.m
+10
-2
10 additions, 2 deletions
code/classes/SCDclass_mdsobjcontainer.m
with
21 additions
and
7 deletions
code/classes/SCDclass_expcode.m
+
11
−
5
View file @
bf119b72
...
...
@@ -623,9 +623,10 @@ classdef SCDclass_expcode
if
(
~
ismember
(
algo
.
getname
,
obj
.
algonamelist
))
obj
.
algonamelist
{
end
+
1
}
=
algo
.
getname
;
obj
.
algos
{
end
+
1
}
=
algo
;
present
=
false
;
else
warning
(
'SCDclass_expcode:addalgorithm'
,
'algorithm
''
%s
''
already present in the expcode,
skipping!
'
,
algo
.
getname
);
re
turn
;
warning
(
'SCDclass_expcode:addalgorithm'
,
'algorithm
''
%s
''
already present in the expcode,
importing only wavegens
'
,
algo
.
getname
);
p
re
sent
=
true
;
end
% Importing algorithm MDS objects into the main mdscontainer,
...
...
@@ -633,8 +634,13 @@ classdef SCDclass_expcode
algomdscontainer
=
algo
.
getmdscontainer
;
basewgstruct
=
sprintf
(
'SCDsimdata.SCDnode%02d%02d_simdata.wavegen'
,
node
,
cpu
);
algomdscontainer
=
algomdscontainer
.
setwavegenbasestruct
(
basewgstruct
);
obj
.
mdscontainer
=
obj
.
mdscontainer
.
importmdsobjects
(
algomdscontainer
);
if
~
present
obj
.
mdscontainer
=
obj
.
mdscontainer
.
importmdsobjects
(
algomdscontainer
);
else
obj
.
mdscontainer
=
obj
.
mdscontainer
.
importmdswavegens
(
algomdscontainer
);
return
;
end
% Importing exported tps
algoexptps
=
algo
.
getexportedtps
;
if
(
numel
(
algoexptps
)
>
0
)
...
...
@@ -673,7 +679,7 @@ classdef SCDclass_expcode
for
jj
=
1
:
numel
(
obj
.
fpinits
)
for
kk
=
1
:
numel
(
obj
.
fpinits
{
jj
}{
2
})
if
(
strcmp
(
char
(
obj
.
fpinits
{
jj
}{
2
}{
kk
}),
fpinits
{
ii
}{
2
}))
warning
(
'SCDclass_expcode:addalgorithm'
,
'An init driving the structure %s has already been added, ignoring this init
.\d'
,
algo
inits
{
ii
}{
2
})
warning
(
'SCDclass_expcode:addalgorithm'
,
'An init driving the structure %s has already been added, ignoring this init
'
,
char
(
fp
inits
{
ii
}{
2
})
)
toadd
(
ii
)
=
0
;
end
end
...
...
This diff is collapsed.
Click to expand it.
code/classes/SCDclass_mdsobjcontainer.m
+
10
−
2
View file @
bf119b72
...
...
@@ -148,8 +148,14 @@ classdef SCDclass_mdsobjcontainer
end
end
end
function
obj
=
importmdsobjects
(
obj
,
source
)
% parameters and wavegens import
obj
=
importmdsparams
(
obj
,
source
);
obj
=
importmdswavegens
(
obj
,
source
);
end
function
obj
=
importmdsparams
(
obj
,
source
)
% parameters import
destparamtargets
=
{};
...
...
@@ -171,7 +177,9 @@ classdef SCDclass_mdsobjcontainer
end
end
end
end
function
obj
=
importmdswavegens
(
obj
,
source
)
% wavegens import
destwavegentargets
=
{};
if
obj
.
numwavegens
>
0
...
...
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