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
ccbcc2ce
Commit
ccbcc2ce
authored
2 years ago
by
Cristian Galperti
Browse files
Options
Downloads
Patches
Plain Diff
castdata abstract method added
parent
6e49ca69
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
classes/SCDclass_mdswg.m
+4
-1
4 additions, 1 deletion
classes/SCDclass_mdswg.m
classes/SCDclass_mdswgsigsingle.m
+5
-1
5 additions, 1 deletion
classes/SCDclass_mdswgsigsingle.m
with
9 additions
and
2 deletions
classes/SCDclass_mdswg.m
+
4
−
1
View file @
ccbcc2ce
...
...
@@ -29,7 +29,7 @@ classdef SCDclass_mdswg < matlab.mixin.Heterogeneous
overrideshot
% =1 if instantiated with overridden shot number, in this case this shot number will be always used during actualization
overrideshotn
% shot number in case of overridden shot number
bound
% true if wavegen has been bound to another SCDDS component
bound
% true if wavegen has been bound to another SCDDS component
end
properties
...
...
@@ -257,6 +257,9 @@ classdef SCDclass_mdswg < matlab.mixin.Heterogeneous
% Populates the corresponding MDS node with workspace values
autopopulatemds
(
obj
,
shot
)
% casts to proper type
out
=
castdata
(
obj
,
in
);
end
end
...
...
This diff is collapsed.
Click to expand it.
classes/SCDclass_mdswgsigsingle.m
+
5
−
1
View file @
ccbcc2ce
...
...
@@ -143,7 +143,11 @@ classdef SCDclass_mdswgsigsingle < SCDclass_mdswg
units
=
wgentryval
.
(
structparam
)
.
DataInfo
.
Units
;
obj
.
autopopulatemdscommon
(
shot
,
obj
.
tdiexpr
,
dim
,
data
,
units
,
[
baseparam
'.'
structparam
'['
num2str
(
obj
.
destidx
)
']'
]);
end
end
function
out
=
castdata
(
obj
,
in
)
out
=
single
(
in
);
end
end
end
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