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

First passing compile of meq in rtccode

parent 421d461a
No related branches found
No related tags found
No related merge requests found
*.sldd
......@@ -3,8 +3,27 @@ classdef SCDalgo_liuqe_test < matlab.unittest.TestCase
methods (Test)
function test_compile(testCase)
%%
SCDconf_setSIMconf;
algoobj = SCDalgo_liuqe_obj;
algoobj.callinits; % calls inits defining fixed parameters etc
algoobj.setup; % calls possible tunable parameters
shot = 61400; t = 0:1e-3:1;
Lcall = algoobj.getinits{2}{1};
L = Lcall(algoobj);
assignin('base','LX',liuxtcv(shot,t,L));
liuqeLXBus;
modelname = algoobj.getname;
try
eval(sprintf('%s([],[],[],''compile'')',modelname));
catch
eval(sprintf('%s([],[],[],''term'')',modelname));
end
eval(sprintf('%s([],[],[],''term'')',modelname));
sim(modelname)
%%
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