-
Notifications
You must be signed in to change notification settings - Fork 5
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
Optionally disable legacy reactions in Cantera 2.6 #131
Comments
Generally, the method that we try to use to get this assurance, at least for the C++ core, is by having deprecated features call I think the current issue arises from the fact that there are a number of deprecated reaction types that don't raise such warnings and we don't necessarily want them to, at least depending on the path by which these reactions are created (e.g., we don't want to have warnings about deprecated reaction types if you're importing a CTI file -- that should only issue the warning about the CTI format being deprecated). But I think we are missing warnings for these types if they are instantiated explicitly rather than through the mechanism import process. |
This is not how I understood the precompiler flag As my limited tests are already showing, switching some objects over appears to introduce wide-spread breakages, which I'd like to pre-emptively address. |
Abstract
At the moment, there already is a preprocessor flag
CT_NO_LEGACY_REACTIONS_26
introduced inReaction.h
, although it remains untested (at the moment, I am aware of at least one instance where toggling this flag will result in compilation errors). In order to ensure that the new framework introduced in #87 works without legacy support, the use of this preprocessor flag (or an additionalCT_NO_LEGACY_26
) could be extended to completely eliminate legacy reactions (as well as various CTI/XML tags).The flag could be adopted in
SCons
Motivation
Describe the need for the work being done:
Alternatives
Just make sure that toggling the flag to change defaults works (while still adding a CI runner that covers this configuration).
Edit: Changes proposed in Cantera/cantera#1184 largely address this issue, as remaining 'hybrid' implementations no longer use legacy objects.
The text was updated successfully, but these errors were encountered: