-
Notifications
You must be signed in to change notification settings - Fork 7
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
#680: Remove/simplify constants #685
Conversation
@cwschilly before i merge it, can you please try to "randomly" pick some places and inject the wrong value (eg.. wheere there is a 1 put 2 or similar) and run the tests to see if these errors are detected? just curious if the test suite is strong enough |
@fnrizzi You can see the test failures here. The failures are in |
Can you please write/report here in a comment what you changed and what the error was |
it is good ode and rom fail. |
Fixes #680
This PR moves the
Constants
struct intoode_constants.hpp
, so we can still use the fractions (e.g.fourOvThree
) easily.This means that the code in
ode
is largely unchanged, besides simplifications and replacingutils::Constants
withode::constants::Constants
(often withusing cnst = ::pressio::ode::constants::Constants<scalar_t>
).All code outside of
ode
replaces any calls toutils::Constants
withstatic_cast
.