-
Notifications
You must be signed in to change notification settings - Fork 343
[SofaBaseLinearSolver] CGLinearSolver must call super init() to check required Data #2419
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
[ci-build][with-all-tests] |
|
[ci-depends-on] detected during build #4. To unlock the merge button, you must
|
|
[ci-depends-on] detected during build #5. To unlock the merge button, you must
|
|
Cool @alxbilger so if there is Required data and in |
|
[ci-depends-on] detected during build #6. To unlock the merge button, you must
|
That's the opposite: to catch an error if a required Data is missing, the component must call |
|
[ci-build][with-all-tests] |
|
[ci-depends-on] detected during build #7. To unlock the merge button, you must
|
|
few CUDA scenes are failing, all with the messages |
@fredroy ok I did not catch them. Thanks |
|
[ci-depends-on] detected during build #9. To unlock the merge button, you must
|
|
[ci-depends-on] detected during build #10. To unlock the merge button, you must
|
|
CI looks happy, I'll merge the dependent PRs 👍 |
|
[ci-build][with-all-tests] |
|
[ci-depends-on] detected during build #11. All dependencies are merged/closed and all ExternalProject pointers are up-to-date. Congrats! 👍 |
… required Data (sofa-framework#2419) * [SofaBaseLinearSolver] CGLinearSolver must call super init() to check required Data * Missing required Data * Missing required Data * Missing required Data * Missing required Data * Missing required Data * Missing required Data
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.
CGLinearSolver::init()did not callinit()of its base class. The result is that the check of the required Data, which is inBaseObject::init(), is never called.CGLinearSolverhas required Data, therefore the error never triggered when one of the required Data was not set.[ci-depends-on https://github.com/sofa-framework/Compliant/pull/4]
[ci-depends-on https://github.com/sofa-framework/Flexible/pull/3]
[ci-depends-on https://github.com/sofa-framework/SofaPython/pull/2]
[ci-depends-on https://github.com/sofa-framework/SofaPython3/pull/211]
By submitting this pull request, I acknowledge that
I have read, understand, and agree SOFA Developer Certificate of Origin (DCO).
Reviewers will merge this pull-request only if