Skip to content

Commit

Permalink
FEM evaluation bug
Browse files Browse the repository at this point in the history
  • Loading branch information
otvam committed Apr 17, 2020
1 parent 892243d commit 03127df
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions source_inductor/inductor_fem_ann/+fem_ann/get_out_fem.m
Original file line number Diff line number Diff line change
Expand Up @@ -107,12 +107,12 @@ function set_parameter(model, tag_param, inp)
% out_fem (struct): struct of vectors with the FEM results

% evaluate the expression
data_tmp = cell(1,length(expr));
[data_tmp{:}] = model.mphglobal(expr, 'Complexout','on');
data_raw = cell(1,length(expr));
[data_raw{:}] = model.mphglobal(expr, 'Complexout','on');

% assign the results
for i=1:length(expr)
data_tmp = data_tmp{i};
data_tmp = data_raw{i};
assert(length(data_tmp)==1 , 'invalid length')
data.(expr{i}) = data_tmp;
end
Expand Down

0 comments on commit 03127df

Please sign in to comment.