Skip to content

Empty sparse matrix in SofaPython3 access_matrix bindings #5734

@GaetanDesrues

Description

@GaetanDesrues

Problem

Description
I'm using SOFA v25.06 with SofaPython3 on ubuntu (WSL). I'm using python bindings to access system matrices as showcased in the examples (SofaPython examples). While it works for external forces and solution (b and x), I always end up with empty sparse matrices for system/mass/stiffness. In python scipy.sparse, I have nnz=0

Steps to reproduce
Build SOFA with SofaPython3 and run examples

Expected behavior
Non-empty system matrix


Environment

Context

  • System: Ubuntu via WSL
  • Version of SOFA: compiled from sources, SOFA&SofaPython3 v25.06

Metadata

Metadata

Assignees

No one assigned

    Labels

    issue: bug (minor)Bug affecting only some users or with no major impact on the framework

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions