Skip to content

Commit

Permalink
Fix FMI platform and FMI Kit version in export_fmus.m
Browse files Browse the repository at this point in the history
  • Loading branch information
t-sommer committed Apr 8, 2019
1 parent 46678ac commit 9ca3583
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion tests/export_fmus.m
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
function export_fmus(varargin)

% compile timesthree.c
mex timesthree.c

switch mexext
case 'mexa64'
platform = 'linux64';
case 'mexmaci64'
platform = 'darwin64';
case 'mexw32'
platform = 'win32';
case 'mexw64'
platform = 'win64';
end

if numel(varargin) == 1
fmus_dir = varargin{1};
else
Expand Down Expand Up @@ -40,7 +54,7 @@ function export_fmus(varargin)
end

model_dir = fullfile(fmus_dir, '2.0', ...
fmi_kind, 'win64', 'FMIKit', '2.6', model_name);
fmi_kind, platform, 'FMIKit', num2str(FMIKit.version), model_name);

mkdir(model_dir);

Expand Down

0 comments on commit 9ca3583

Please sign in to comment.