Skip to content
Snippets Groups Projects
Commit ccbcc2ce authored by Cristian Galperti's avatar Cristian Galperti
Browse files

castdata abstract method added

parent 6e49ca69
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
......@@ -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
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