Skip to content

Commit

Permalink
- getValueReference works with row major order for cpp fmus
Browse files Browse the repository at this point in the history
  • Loading branch information
vwaurich committed Nov 27, 2015
1 parent 292fdca commit 6c675e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Compiler/SimCode/SimCodeUtil.mo
Expand Up @@ -11657,7 +11657,7 @@ algorithm
case (SimCodeVar.SIMVAR(aliasvar = SimCodeVar.NEGATEDALIAS(_)), false, _) then
getDefaultValueReference(inSimVar, inSimCode.modelInfo.varInfo);
case (_, _, "Cpp") equation
valueReference = getVarIndexByMapping(inSimCode.varToArrayIndexMapping, inSimVar.name, true, "-1");
valueReference = getVarIndexByMapping(inSimCode.varToArrayIndexMapping, inSimVar.name, false, "-1");
if stringEqual(valueReference, "-1") then
Error.addInternalError("invalid return value from getVarIndexByMapping for "+simVarString(inSimVar), sourceInfo());
end if;
Expand Down

0 comments on commit 6c675e6

Please sign in to comment.