Skip to content

Commit

Permalink
- CodegenCpp.MemberVariableInitialize and CodegenCpp.MemberVariableDe…
Browse files Browse the repository at this point in the history
…fine have now a similar interface

- scalar variables are now added as #define in C++ code
- some cleanups in CodegenCppHpcom.tpl
- changed SimVars array getter to non constant return value
  • Loading branch information
Marcus Walther committed May 11, 2015
1 parent 0f658ee commit d2765ee
Show file tree
Hide file tree
Showing 6 changed files with 126 additions and 313 deletions.
2 changes: 1 addition & 1 deletion Compiler/BackEnd/HpcOmMemory.mo
Expand Up @@ -1939,7 +1939,7 @@ encapsulated package HpcOmMemory
currentVarIndices = (stateAndStateDerSize + (maxNumElemsFloat - intMod(stateAndStateDerSize, maxNumElemsFloat)), 0, 0);
end if;

print("convertCacheToVarArrayMapping: The first " + intString(Util.tuple31(currentVarIndices)) + " elements are reserved for states and state derivatives\n");
//print("convertCacheToVarArrayMapping: The first " + intString(Util.tuple31(currentVarIndices)) + " elements are reserved for states and state derivatives\n");
varSizeFloat = Util.tuple31(currentVarIndices);

varIdxOffsets = arrayCreate(3,0);
Expand Down

0 comments on commit d2765ee

Please sign in to comment.