You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
engine: C-LEARN fails to compile after macros are supported #559
With macro expansion working, C-LEARN still did not compile.
The errors were a false CircularDependency on previous emissions intensity vs refyr (a recurrence that is a cycle between variables but not between elements), MismatchedDimensions on four ocean carbon and heat variables, an UnknownDependency on emissions with cumulative constraints, and a DoesNotExist for the quoted name "goal 1.5 for temperature".
Status
Fixed on main.
Element-level cycle resolution (#592) compiles such a recurrence element by element instead of rejecting it, and the other errors are gone. simulates_clearn runs in the default test suite and matches Vensim's Ref.vdf within 1% on all but four variables, which are tracked in #591.
changed the title [-]engine: C-LEARN full simulation blocked by non-macro issues (circular dep, dimension mismatches, unknown dep) -- the macro epic's deferred 'tracked separately' follow-up[/-][+]engine: C-LEARN fails to compile after macros are supported[/+]on Oct 12, 2026
C-LEARN compiles and runs on main: simulates_clearn (src/simlin-engine/tests/integration/simulate.rs:4010) is not ignored and holds the model to Ref.vdf at 1%, and each original error has its own regression test (quoted-period name at simulate.rs:4218, self-recurrence at :4321, rank-changing flow and net-flow shape in mdl/convert/stocks.rs:1303 and :1393). Not run here; read from code only.
Activity
engine: replace phantom design-doc citations in comments
engine: tighten genuine same-element self-cycle to CircularDependency…
engine: transition inter-variable-cycle test; add init-recurrence fix…
[-]engine: C-LEARN full simulation blocked by non-macro issues (circular dep, dimension mismatches, unknown dep) -- the macro epic's deferred 'tracked separately' follow-up[/-][+]engine: C-LEARN fails to compile after macros are supported[/+]bpowers commentedon Oct 12, 2026
Closing: already fixed on main.
C-LEARN compiles and runs on main:
simulates_clearn(src/simlin-engine/tests/integration/simulate.rs:4010) is not ignored and holds the model to Ref.vdf at 1%, and each original error has its own regression test (quoted-period name at simulate.rs:4218, self-recurrence at :4321, rank-changing flow and net-flow shape in mdl/convert/stocks.rs:1303 and :1393). Not run here; read from code only.