Skip to content

Commit 1204286

Browse files
committed
feat(core): add symbolic equation isolation engine for algebraic loop reduction
1 parent 3e661eb commit 1204286

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

  • packages/core/src/compiler/modelica

packages/core/src/compiler/modelica/blt.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,8 @@ export function performBltTransformation(dae: ModelicaDAE): {
267267
const idx = sccEqs.indexOf(matchingEq);
268268
if (idx >= 0) sccEqs[idx] = isolated;
269269
equations[eqIdx] = isolated;
270+
// Propagate back to the original DAE so output uses the isolated form
271+
dae.equations[eqIdx] = isolated;
270272
} else {
271273
// implicit single variable loop — cannot isolate
272274
algebraicLoops.push({ variables: scc, equations: sccEqs });

0 commit comments

Comments
 (0)