-
Notifications
You must be signed in to change notification settings - Fork 95
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
ARKODE_MRI interface #3013
base: next
Are you sure you want to change the base?
ARKODE_MRI interface #3013
Conversation
#include "bout/build_config.hxx" | ||
#include "bout/solver.hxx" | ||
|
||
#if not BOUT_HAS_ARKODE |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would it be possible to have a preprocessor-based test for the ARKODE version? I ask because BOUT++ can generally be built with legacy versions of SUNDIALS, but this MRI interface will only be "valid" starting from a specific SUNDIALS release. If this is possible, then I would like to update this "if" to ensure that the SUNDIALS release is at least the upcoming one (later this month).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SUNDIALS_VERSION_AT_LEAST(major, minor, patch)
is being added in #2990 so that could then be used as #if SUNDIALS_VERSION_AT_LEAST(7,2,0)
if it will end up in 7.2.0
|
||
#include "bout/bout_enum_class.hxx" | ||
#include "bout/bout_types.hxx" | ||
#include "bout/sundials_backports.hxx" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This #include
will be unnecessary if the preprocessor guard is added above.
rhs_ncalls_fe++; | ||
rhs_ncalls_fi++; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Again, does this really want to increment both counters?
ARKODE MRI interface
An integrated test with ARKODE MRI interface