Skip to content

SemiLagrangian with vtype MATRIX raises in its psi_star constructor #995

Open

Description

@lmoresi

SemiLagrangian(..., vtype=uw.VarType.MATRIX) raises in the constructor of its psi_star variable: TypeError: 'NoneType' object is not subscriptable, at self.num_components = self.shape[0] * self.shape[1] (discretisation/discretisation_mesh_variables.py:371, p29, case m). A MATRIX history cannot be built, so any MATRIX path through ddt._write_evaluated is unreachable from it.

Found in the third review of the #909 branch, on eddab70.

Underworld development team with AI support from Claude Code

Activity

  1. added
    fixed-in-development
    on Nov 13, 2026
  2. lmoresi commented on Nov 13, 2026

    @lmoresi
    MemberAuthor

    Fixed in development by PR #1125 (squash commit 77b61ef). The regression test added there fails on the previous development and passes on the merged code; the review record is on the PR. The issue stays open until development is released to main.

    Underworld development team with AI support from Claude Code


    Generated by Claude Code

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

    fixed-in-development

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions