You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
FMI2 Cpp: fix naming to consistent use of short model identifiers (#3241)
This way the FMI export is compatible with the overall Cpp runtime.
It might be changed to consistent use long model identifiers later on.
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@25207 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
"Generates the contents of the makefile for the simulation case. Copy libexpat & correct linux fmu"
440
441
::=
441
442
match target
@@ -505,7 +506,8 @@ case "gcc" then
505
506
match simCode
506
507
case SIMCODE(modelInfo=MODELINFO(__), makefileParams=MAKEFILE_PARAMS(__), simulationSettingsOpt = sopt) then
507
508
let extraCflags = match sopt case SOME(s as SIMULATION_SETTINGS(__)) then ""
508
-
let modelName = '<%lastIdentOfPath(modelInfo.name)%>'
509
+
// Note: FMI 1.0 did not distinguish modelIdentifier from fileNamePrefix
510
+
let modelName = if isFMIVersion20(FMUVersion) then dotPath(modelInfo.name) else fileNamePrefix
509
511
let platformstr = match makefileParams.platform case "i386-pc-linux" then 'linux32' case "x86_64-linux" then 'linux64' else '<%makefileParams.platform%>'
510
512
let mkdir = match makefileParams.platform case "win32" then '"mkdir.exe"' else 'mkdir'
511
513
<<
@@ -523,8 +525,8 @@ case SIMCODE(modelInfo=MODELINFO(__), makefileParams=MAKEFILE_PARAMS(__), simula
0 commit comments