Skip to content

Commit

Permalink
fixes for sundials
Browse files Browse the repository at this point in the history
  • Loading branch information
gtheler committed Jul 10, 2024
1 parent 4458f4d commit c621352
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/feenox.h
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
#include <gsl/gsl_vector.h>
#include <gsl/gsl_version.h>

#if HAVE_SUNDIALS
#ifdef HAVE_SUNDIALS
#include <ida/ida.h>
#include <ida/ida_direct.h>
#include <nvector/nvector_serial.h>
Expand Down Expand Up @@ -1675,7 +1675,7 @@ struct feenox_t {
initial_conditions_from_derivatives,
} initial_conditions_mode;

#if HAVE_SUNDIALS
#ifdef HAVE_SUNDIALS
N_Vector x;
N_Vector dxdt;
N_Vector id;
Expand Down
2 changes: 1 addition & 1 deletion src/math/dae.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
*------------------- ------------ ---- -------- -- - - -
*/
#include "feenox.h"
#if HAVE_SUNDIALS
#ifdef HAVE_SUNDIALS
#include <sundials/sundials_version.h>
#endif
extern const char factorseparators[];
Expand Down
2 changes: 1 addition & 1 deletion src/version.c
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ void feenox_longversion(void) {

printf("GSL version : %s\n", gsl_version);

#if HAVE_SUNDIALS
#ifdef HAVE_SUNDIALS
char sundials_version[BUFFER_TOKEN_SIZE];
SUNDIALSGetVersion(sundials_version, BUFFER_TOKEN_SIZE-1);
#else
Expand Down

0 comments on commit c621352

Please sign in to comment.