Skip to content

Commit 6d7264c

Browse files
committed
fix: custom solver updates solved state
1 parent 45661cf commit 6d7264c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

LoopStructural/interpolators/_discrete_interpolator.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -654,7 +654,9 @@ def solve_system(
654654
A, b = self.build_matrix()
655655
if callable(solver):
656656
logger.warning(f'Using custom solver')
657-
self.c = solver(A.to_csr(), b)
657+
self.c = solver(A.tocsr(), b)
658+
self.up_to_date = True
659+
658660
return True
659661
res = sparse.linalg.lsmr(
660662
A,

0 commit comments

Comments
 (0)