Skip to content

Commit

Permalink
sundials version check resolved
Browse files Browse the repository at this point in the history
  • Loading branch information
maggul committed Jan 27, 2025
1 parent 41830be commit aa7028e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/solver/impls/arkode/arkode_mri.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

#include "arkode_mri.hxx"

SUNDIALS_VERSION_AT_LEAST(7, 2, 0)
#if SUNDIALS_VERSION_AT_LEAST(7, 2, 0)

#include "bout/assert.hxx"
#include "bout/bout_types.hxx"
Expand Down Expand Up @@ -997,4 +997,6 @@ void ArkodeMRISolver::loop_abstol_values_op(Ind2D UNUSED(i2d), BoutReal* abstolv
}
}

#else
#endif // SUNDIALS_VERSION CHECK
#endif // BOUT_HAS_ARKODE
3 changes: 2 additions & 1 deletion src/solver/impls/arkode/arkode_mri.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ RegisterUnavailableSolver
#include "bout/region.hxx"
#include "bout/sundials_backports.hxx"

SUNDIALS_VERSION_AT_LEAST(7, 2, 0)
#if SUNDIALS_VERSION_AT_LEAST(7, 2, 0)

#include <nvector/nvector_parallel.h>
#include <arkode/arkode_mristep.h>
Expand Down Expand Up @@ -167,6 +167,7 @@ private:
};

#else
#endif // SUNDIALS_VERSION CHECK
#endif // BOUT_HAS_ARKODE
#endif // BOUT_ARKODE_MRI_SOLVER_H

0 comments on commit aa7028e

Please sign in to comment.