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

Add possibility to disable a backend at compile-time #507

Closed
ibell opened this issue Feb 27, 2015 · 5 comments
Closed

Add possibility to disable a backend at compile-time #507

ibell opened this issue Feb 27, 2015 · 5 comments
Milestone

Comments

@ibell
Copy link
Contributor

ibell commented Feb 27, 2015

Something like what was done in externalmedia to enable or disable solvers

This will help to disable backends that for some reason aren't compatible, like tabular methods on VxWorks.

@ibell ibell added this to the v 5.1 milestone Feb 28, 2015
@mikekaganski
Copy link
Contributor

Could you please provide any codepointers to externalmedia?

@ibell
Copy link
Contributor Author

ibell commented Mar 1, 2015

I would say your time is not well spent playing with ExternalMedia - that's
a library for Modelica, and it's a whole different animal

On Sun, Mar 1, 2015 at 12:52 AM, mikekaganski notifications@github.com
wrote:

Could you please provide any codepointers to externalmedia?


Reply to this email directly or view it on GitHub
#507 (comment).

@mikekaganski
Copy link
Contributor

Then, could you describe what functionality do you expect from self-registering backends?
Do you suggest that they be dynamic link libraries that, if present in directory, are automatically loaded and used?
Or just a means to simplify adding new AbstractState descendant so that it would be automatically available to methods without need to modify them?

@ibell ibell changed the title Add a means of allowing backends to self-register Add possibility to disable a backend at compile-time Mar 2, 2015
@ibell
Copy link
Contributor Author

ibell commented Mar 2, 2015

Actually, having thought about this some more, the best thing is just to add macros that can be used to disable a backend if we know it is incompatible. I don't think there is a way to automatically detect all the backends at compile-time.

@mikekaganski
Copy link
Contributor

Well, if the abstractstate would contain a static vector member that each descendant would append with its factory, that (factory) would be also static for each backend, then you could have such possibility.

@ibell ibell closed this as completed in 8832b44 Mar 3, 2015
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