Skip to content

Commit

Permalink
- Added ModelExchange tag for fmi 2.0 modelDescription.xml file.
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@20187 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
adeas31 committed Apr 16, 2014
1 parent fd12944 commit 84d622c
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions Compiler/Template/CodegenFMU.tpl
Expand Up @@ -100,6 +100,7 @@ case SIMCODE(__) then
<<
<fmiModelDescription
<%fmi2ModelDescriptionAttributes(simCode,guid)%>>
<%ModelExchange(simCode)%>
</fmiModelDescription>
>>
end fmi2ModelDescription;
Expand Down Expand Up @@ -128,6 +129,19 @@ case SIMCODE(modelInfo = MODELINFO(varInfo = vi as VARINFO(__), vars = SIMVARS(s
>>
end fmi2ModelDescriptionAttributes;

template ModelExchange(SimCode simCode)
"Generates ModelExchange code for ModelDescription file for FMU target."
::=
match simCode
case SIMCODE(__) then
let modelIdentifier = modelNamePrefix(simCode)
<<
<ModelExchange
modelIdentifier="<%modelIdentifier%>">
</ModelExchange>
>>
end ModelExchange;

template fmiModelDescription(SimCode simCode, String guid)
"Generates code for ModelDescription file for FMU target."
::=
Expand Down

0 comments on commit 84d622c

Please sign in to comment.