Skip to content

Implement StateLayout pack, unpack, and validation infrastructure #142

Description

@bernalde

Parent: #118

Goal

Introduce a small StateLayout abstraction in Commons.py as the single owner of state-vector slice offsets.

Acceptance criteria

  • Build the layout from existing state metadata.
  • Provide packing, zero-copy unpacking, and explicit shape validation.
  • Keep the flat vector at the Assimulo/SUNDIALS boundary.
  • Add focused unit tests for scalar, vector, and discretized state blocks.
  • Preserve compatibility with existing unpacking helpers during incremental adoption.

Metadata

Metadata

Assignees

Labels

area:architectureShared abstractions, base classes, constants, or project structurerefactor:mpvOverlaps the MultiPhaseVessel refactor; revalidate after mergestatus:plannedPlanned roadmap or maintenance work, not a verified bug reporttech-debtCode health and refactoring

Type

Projects

Status
No status

Relationships

None yet

Development

No branches or pull requests

Issue actions