Skip to content
This repository was archived by the owner on Apr 16, 2025. It is now read-only.

Commit 9ca3583

Browse files
committed
Fix FMI platform and FMI Kit version in export_fmus.m
1 parent 46678ac commit 9ca3583

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

tests/export_fmus.m

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,19 @@
11
function export_fmus(varargin)
22

3+
% compile timesthree.c
4+
mex timesthree.c
5+
6+
switch mexext
7+
case 'mexa64'
8+
platform = 'linux64';
9+
case 'mexmaci64'
10+
platform = 'darwin64';
11+
case 'mexw32'
12+
platform = 'win32';
13+
case 'mexw64'
14+
platform = 'win64';
15+
end
16+
317
if numel(varargin) == 1
418
fmus_dir = varargin{1};
519
else
@@ -40,7 +54,7 @@ function export_fmus(varargin)
4054
end
4155

4256
model_dir = fullfile(fmus_dir, '2.0', ...
43-
fmi_kind, 'win64', 'FMIKit', '2.6', model_name);
57+
fmi_kind, platform, 'FMIKit', num2str(FMIKit.version), model_name);
4458

4559
mkdir(model_dir);
4660

0 commit comments

Comments
 (0)