Skip to content

Commit

Permalink
Updates for compatibility with sundials 7
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelClerx committed May 9, 2024
1 parent 21ba59e commit a65d882
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions myokit/_sim/cvodessim.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,9 @@ import myokit
#define SUNDIALS_VERSION_MAJOR 2
#endif
#include <sundials/sundials_types.h>
#ifndef realtype
#if SUNDIALS_VERSION_MAJOR >= 7
#define realtype sunrealtype
#endif
#ifndef RCONST
#define RCONST(x) x
#define RCONST SUN_RCONST
#endif
#if SUNDIALS_VERSION_MAJOR >= 3
#include <sunmatrix/sunmatrix_dense.h>
Expand Down

0 comments on commit a65d882

Please sign in to comment.