Skip to content
This repository was archived by the owner on May 18, 2019. It is now read-only.

Commit 8899379

Browse files
rfrankeOpenModelica-Hudson
authored andcommitted
Revert "[workaround] Disable sorting of external objects for cpp runtime"
This reverts commit 1bf65f3.
1 parent 9cbbca6 commit 8899379

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

Compiler/BackEnd/Initialization.mo

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -806,14 +806,7 @@ algorithm
806806
allParameterEqns := BackendEquation.emptyEqns();
807807
otherVariables := BackendVariable.emptyVars();
808808
(allParameters, allParameterEqns, otherVariables) := BackendVariable.traverseBackendDAEVars(dae.shared.globalKnownVars, selectParameter2, (allParameters, allParameterEqns, otherVariables));
809-
810-
// FIXME: This if clause is a workaround. Remove it as soon as cpp runtime is
811-
// adapted to handle external objects together with parameters.
812-
// see ticket:3446
813-
if not stringEq(Config.simCodeTarget(), "Cpp") then
814-
(allParameters, allParameterEqns, otherVariables) := BackendVariable.traverseBackendDAEVars(dae.shared.externalObjects, selectParameter2, (allParameters, allParameterEqns, otherVariables));
815-
end if;
816-
809+
(allParameters, allParameterEqns, otherVariables) := BackendVariable.traverseBackendDAEVars(dae.shared.externalObjects, selectParameter2, (allParameters, allParameterEqns, otherVariables));
817810
nParam := BackendVariable.varsSize(allParameters);
818811

819812
if nParam > 0 then

0 commit comments

Comments
 (0)