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

Make physics classes separate libraries #37

Open
neiser opened this issue Mar 14, 2017 · 1 comment
Open

Make physics classes separate libraries #37

neiser opened this issue Mar 14, 2017 · 1 comment
Assignees

Comments

@neiser
Copy link
Contributor

neiser commented Mar 14, 2017

In order to reduce compile time of the main program, provide each physics class as a shared library, possible only a factory method to create it. Then Ant loads that library, gets the factory maker and creates the physics classes as usual. This replaces the PhysicsRegistry.

The cmake build system could prove helpful here, and it's strongly correlated to #33.

Apply this scheme also to plotters and Ant-plot.

Useful resource for dlopen: http://www.linuxjournal.com/article/3687 It mentions that __init mechanism is broken. Check if that's still true.

@osteffen
Copy link
Contributor

Wrote this. C++ library loader
(Of course this exists already elsewhere... was just interested in learning)

Could be used to get a factory method for physics classes in the libs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants