Skip to content

Commit 6ef05ed

Browse files
alxbilgerhugtalbot
andauthored
Fix binding after #5648 (sofa-framework#528)
Co-authored-by: Hugo <[email protected]>
1 parent 5029c05 commit 6ef05ed

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

bindings/Modules/src/SofaPython3/SofaLinearSolver/Binding_LinearSolver.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ void bindLinearSolvers(py::module &m)
6767

6868
c.def("A", [](CRSLinearSolver& self) -> EigenSparseMatrix
6969
{
70-
if (CRS* matrix = self.getSystemMatrix())
70+
if (CRS* matrix = self.l_linearSystem->getSystemMatrix())
7171
{
7272
return toEigen(*matrix);
7373
}
@@ -76,7 +76,7 @@ void bindLinearSolvers(py::module &m)
7676

7777
c.def("b", [](CRSLinearSolver& self) -> Vector
7878
{
79-
if (auto* vector = self.getSystemRHVector())
79+
if (auto* vector = self.l_linearSystem->getRHSVector())
8080
{
8181
return EigenVectorMap(vector->ptr(), vector->size());
8282
}
@@ -85,7 +85,7 @@ void bindLinearSolvers(py::module &m)
8585

8686
c.def("x", [](CRSLinearSolver& self) -> Vector
8787
{
88-
if (auto* vector = self.getSystemLHVector())
88+
if (auto* vector = self.l_linearSystem->getSolutionVector())
8989
{
9090
return EigenVectorMap(vector->ptr(), vector->size());
9191
}

0 commit comments

Comments
 (0)