Skip to content

Commit 455b0fc

Browse files
committed
[SofaBaseLinearSolver] Remove the IsRequired flag in CGLinearSolver
PR 2419 restores the correct behavior of CGLinearSolver regarding the call-super-init sofa-framework#2419 But as some of its data are tagged as Required, this rise en error message when the value is not set by the user. I'm not sure it is wise to use the required flag when data provides meaningful and usable default values. So I recommand removing it.
1 parent accb5c2 commit 455b0fc

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

SofaKernel/modules/SofaBaseLinearSolver/src/SofaBaseLinearSolver/CGLinearSolver.inl

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,6 @@ CGLinearSolver<TMatrix,TVector>::CGLinearSolver()
4040
, d_graph( initData(&d_graph,"graph","Graph of residuals at each iteration") )
4141
{
4242
d_graph.setWidget("graph");
43-
d_maxIter.setRequired(true);
44-
d_tolerance.setRequired(true);
45-
d_smallDenominatorThreshold.setRequired(true);
4643
}
4744

4845
/// Initialization function checking input Data

0 commit comments

Comments
 (0)