Skip to content

Commit

Permalink
Merge pull request #2949 from Steven-Roberts/cvode_max_order_options
Browse files Browse the repository at this point in the history
Add CVODE mxorder option back, now deprecated
  • Loading branch information
ZedThree authored Jul 30, 2024
2 parents 78a8149 + 9638740 commit 6f727b1
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/solver/impls/cvode/cvode.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,13 @@ int CvodeSolver::init() {
}
#endif

if (mxorder > 0) {
output_warn << "WARNING: Option 'mxorder' is deprecated. Please use "
"'cvode_max_order' instead\n";
if (CVodeSetMaxOrd(cvode_mem, mxorder) != CV_SUCCESS) {
throw BoutException("CVodeSetMaxOrder failed\n");
}
}
if (max_order > 0) {
if (CVodeSetMaxOrd(cvode_mem, max_order) != CV_SUCCESS) {
throw BoutException("CVodeSetMaxOrder failed\n");
Expand Down

0 comments on commit 6f727b1

Please sign in to comment.