Skip to content
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

[ODESolver] Apply new factory registration mechanism #4975

Merged
merged 6 commits into from
Sep 16, 2024

Conversation

fredroy
Copy link
Contributor

@fredroy fredroy commented Sep 6, 2024

See


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

  • it builds with SUCCESS for all platforms on the CI.
  • it does not generate new warnings.
  • it does not generate new unit test failures.
  • it does not generate new scene test failures.
  • it does not break API compatibility.
  • it is more than 1 week old (or has fast-merge label).

@fredroy fredroy added the pr: new feature Implement a new feature label Sep 6, 2024
@fredroy
Copy link
Contributor Author

fredroy commented Sep 6, 2024

[ci-build][with-all-tests]

@fredroy fredroy added the pr: status to review To notify reviewers to review this pull-request label Sep 6, 2024
@fredroy
Copy link
Contributor Author

fredroy commented Sep 6, 2024

[ci-build][with-all-tests][force-full-build]

;
void registerEulerImplicitSolver(sofa::core::ObjectFactory* factory)
{
factory->registerObjects(core::ObjectRegistrationData("Time integrator using implicit backward Euler scheme.")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

coming up to my mind :
@alxbilger does our automatic scrapping for doc generation works with this new factory registration method?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

https://github.com/sofa-framework/doc/blob/8256712c3f2c2c52848de2b8718bf378d05e0d57/script/generate_doc.py#L235

    print("Dumping ObjectFactory in json...")
    object_factory_data = Sofa.Core.ObjectFactory.dump_json()

The DocGenerator uses directly the ObjectFactory so the new registration wont change anything

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree with @fredroy

Comment on lines +776 to +784
{"CentralDifference", Dealiased("v24.12","CentralDifferenceSolver")},
{"DampVelocity", Dealiased("v24.12","DampVelocitySolver")},
{"RungeKutta2", Dealiased("v24.12","RungeKutta2Solver")},
{"RungeKutta4", Dealiased("v24.12","RungeKutta4Solver")},
{"EulerImplicit", Dealiased("v24.12","EulerImplicitSolver")},
{"ImplicitEulerSolver", Dealiased("v24.12","EulerImplicitSolver")},
{"ImplicitEuler", Dealiased("v24.12","EulerImplicitSolver")},
{"VariationalSolver", Dealiased("v24.12","VariationalSymplecticSolver")},

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sweet !
Nice alias cleaning 👍 (this will please @damienmarchal :) )

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I confirm.

@epernod epernod added pr: status ready Approved a pull-request, ready to be squashed and removed pr: status to review To notify reviewers to review this pull-request labels Sep 16, 2024
@epernod epernod merged commit 69189c6 into sofa-framework:master Sep 16, 2024
15 checks passed
@fredroy fredroy deleted the register_odesolver branch September 24, 2024 04:22
@hugtalbot hugtalbot added this to the v24.12 milestone Dec 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr: new feature Implement a new feature pr: status ready Approved a pull-request, ready to be squashed
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

5 participants