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

Commit 725d9de

Browse files
niklworsOpenModelica-Hudson
authored andcommitted
acitvate 'Allow dividing by all globalKnownVars in initDAE' for cpp runtime
Belonging to [master]: - #1994
1 parent 425073c commit 725d9de

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

Compiler/BackEnd/Initialization.mo

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -224,9 +224,8 @@ algorithm
224224
end if;
225225

226226
// simplify system
227-
if not stringEq(Config.simCodeTarget(), "Cpp") then
228-
initdae := BackendDAEUtil.setDAEGlobalKnownVars(initdae, outGlobalKnownVars);
229-
end if;
227+
initdae := BackendDAEUtil.setDAEGlobalKnownVars(initdae, outGlobalKnownVars);
228+
230229

231230
if useHomotopy then
232231
disabledModules := {};
@@ -261,9 +260,9 @@ algorithm
261260
end if;
262261

263262
// Remove the globalKnownVars for the initialization set again
264-
if not stringEq(Config.simCodeTarget(), "Cpp") then
265-
initdae.shared := BackendDAEUtil.setSharedGlobalKnownVars(initdae.shared, BackendVariable.emptyVars());
266-
end if;
263+
264+
initdae.shared := BackendDAEUtil.setSharedGlobalKnownVars(initdae.shared, BackendVariable.emptyVars());
265+
267266

268267
// warn about selected default initial conditions
269268
b1 := not listEmpty(dumpVars);

0 commit comments

Comments
 (0)