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

ARKODE_MRI interface #3013

Draft
wants to merge 5 commits into
base: next
Choose a base branch
from
Draft

ARKODE_MRI interface #3013

wants to merge 5 commits into from

Conversation

maggul
Copy link

@maggul maggul commented Oct 25, 2024

ARKODE MRI interface
An integrated test with ARKODE MRI interface

#include "bout/build_config.hxx"
#include "bout/solver.hxx"

#if not BOUT_HAS_ARKODE
Copy link
Contributor

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).

Copy link
Contributor

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"
Copy link
Contributor

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.

src/solver/impls/arkode/arkode_mri.hxx Outdated Show resolved Hide resolved
src/solver/impls/arkode/arkode_mri.hxx Outdated Show resolved Hide resolved
src/solver/impls/arkode/arkode_mri.hxx Outdated Show resolved Hide resolved
Comment on lines +1515 to +1516
rhs_ncalls_fe++;
rhs_ncalls_fi++;
Copy link
Contributor

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?

tests/integrated/test-kpr_mri/README.md Outdated Show resolved Hide resolved
tests/integrated/test-kpr_mri/test_kpr_mri.cxx Outdated Show resolved Hide resolved
tests/integrated/test-kpr_mri/test_kpr_mri.cxx Outdated Show resolved Hide resolved
tests/integrated/test-kpr_mri/test_kpr_mri.cxx Outdated Show resolved Hide resolved
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

Successfully merging this pull request may close these issues.

3 participants