Skip to content

engine: C-LEARN fails to compile after macros are supported #559

Closed

Description

@bpowers

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.

Pointers

Activity

  1. added
    engine
    compat
    on Jun 8, 2026
  2. 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
  3. added
    bug
    on Oct 12, 2026
  4. bpowers commented on Oct 12, 2026

    @bpowers
    OwnerAuthor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugcompatengine

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions