Fix missing failures.
parent
97f5ee928a
commit
77ccdfacff
|
@ -397,11 +397,12 @@ cdef class SolverSystem:
|
||||||
sys.constraint = self.cons_list.data()
|
sys.constraint = self.cons_list.data()
|
||||||
sys.constraints = self.cons_list.size()
|
sys.constraints = self.cons_list.size()
|
||||||
# Faileds
|
# Faileds
|
||||||
self.failed_list.reserve(self.cons_list.size())
|
self.failed_list = vector[Slvs_hConstraint](self.cons_list.size(), 0)
|
||||||
sys.failed = self.failed_list.data()
|
sys.failed = self.failed_list.data()
|
||||||
sys.faileds = self.cons_list.size()
|
sys.faileds = self.failed_list.size()
|
||||||
# Solve
|
# Solve
|
||||||
Slvs_Solve(&sys, self.g)
|
Slvs_Solve(&sys, self.g)
|
||||||
|
self.failed_list.resize(sys.faileds)
|
||||||
self.dof_v = sys.dof
|
self.dof_v = sys.dof
|
||||||
return sys.result
|
return sys.result
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue