Skip to content

Commit

Permalink
- removed unused parts of init.xml-file (cpp runtime)
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcus Walther committed Sep 11, 2015
1 parent d5feda6 commit 00ba1c4
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions Compiler/Template/CodegenCppInit.tpl
Expand Up @@ -14,8 +14,8 @@ template modelInitXMLFile(SimCode simCode, String numRealVars, String numIntVars
match simCode
case SIMCODE(modelInfo = MODELINFO(__)) then
let variables = modelVariablesXML(simCode, modelInfo, varToArrayIndexMapping, '<%numRealVars%> - 1', '<%numIntVars%> - 1', '<%numBoolVars%> - 1', '<%numStringVars%> - 1', generateFMUModelDescription, complexStartExpressions, stateDerVectorName)
let algLoops = (listAppend(allEquations,initialEquations) |> eq => algLoopXML(eq, simCode, varToArrayIndexMapping, '<%numRealVars%> - 1') ;separator="\n")
let jacobianMatrixes = jacobianMatrixesXML(simCode.jacobianMatrixes)
//let algLoops = (listAppend(allEquations,initialEquations) |> eq => algLoopXML(eq, simCode, varToArrayIndexMapping, '<%numRealVars%> - 1') ;separator="\n")
//let jacobianMatrixes = jacobianMatrixesXML(simCode.jacobianMatrixes)
let descriptionTag = if generateFMUModelDescription then "fmiModelDescription" else "ModelDescription"
let fmiDescriptionAttributes = if generateFMUModelDescription then fmiDescriptionAttributes(simCode, FMUVersion, FMUType, FMUGuid) else 'modelName="<%dotPath(modelInfo.name)%>"'
let fmiTypeDefinitions = if generateFMUModelDescription then CodegenFMUCommon.fmiTypeDefinitions(modelInfo, FMUVersion)
Expand All @@ -29,6 +29,9 @@ template modelInitXMLFile(SimCode simCode, String numRealVars, String numIntVars
<ModelVariables>
<%variables%>
</ModelVariables>
</<%descriptionTag%>>
>>
/*
<%if boolNot(generateFMUModelDescription) then
<<
<AlgLoops>
Expand All @@ -39,8 +42,7 @@ template modelInitXMLFile(SimCode simCode, String numRealVars, String numIntVars
</Jacobian>
>>
%>
</<%descriptionTag%>>
>>
*/
end modelInitXMLFile;

template fmiDescriptionAttributes(SimCode simCode, String FMUVersion, String FMUType, String FMUGuid)
Expand Down

0 comments on commit 00ba1c4

Please sign in to comment.