Skip to content

Commit

Permalink
- removed $-sign from variable/parameter names in modelDescription of…
Browse files Browse the repository at this point in the history
… c++ runtime (FMU 1.0)
  • Loading branch information
Marcus Walther committed Sep 17, 2015
1 parent 058d92c commit ac0ef81
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Compiler/Template/CodegenCppInit.tpl
Expand Up @@ -57,7 +57,7 @@ template fmiModelDescriptionAttributes(SimCode simCode, String guid)
match simCode
case SIMCODE(modelInfo = MODELINFO(varInfo = vi as VARINFO(__), vars = SIMVARS(stateVars = listStates))) then
let fmiVersion = '1.0'
let modelName = dotPath(modelInfo.name)
let modelName = System.stringReplace(dotPath(modelInfo.name),"$", "_D_")
let modelIdentifier = System.stringReplace(fileNamePrefix,".", "_")
let description = ''
let author = ''
Expand Down Expand Up @@ -139,7 +139,7 @@ template scalarVariableAttributeXML(SimVar simVar, HashTableCrIListArray.HashTab
let description = if comment then 'description="<%Util.escapeModelicaStringToXmlString(comment)%>"'
let additionalAttributes = if generateFMUModelDescription then '' else 'isProtected="<%isProtected%>"'
<<
name="<%Util.escapeModelicaStringToXmlString(crefStrNoUnderscore(name))%>" valueReference="<%valueReference%>" <%description%> variability="<%variability%>" causality="<%causalityAtt%>" alias="<%alias%>" <%additionalAttributes%>
name="<%System.stringReplace(Util.escapeModelicaStringToXmlString(crefStrNoUnderscore(name)),"$", "_D_")%>" valueReference="<%valueReference%>" <%description%> variability="<%variability%>" causality="<%causalityAtt%>" alias="<%alias%>" <%additionalAttributes%>
>>
end scalarVariableAttributeXML;

Expand Down

0 comments on commit ac0ef81

Please sign in to comment.