diff options
author | Dominic Steinitz <dominic@steinitz.org> | 2018-03-30 09:55:08 +0100 |
---|---|---|
committer | Dominic Steinitz <dominic@steinitz.org> | 2018-03-30 09:55:08 +0100 |
commit | 94d26eb8ef7cf236127e9e51bb3c46348c4c6cfc (patch) | |
tree | 23b17f2b8927f79951f8fa82ce9bdfb0e251c21a /packages/sundials | |
parent | 369b1f77a3fff84f1443f8adaac50f1813e8c15e (diff) |
Move definition to correct place
Diffstat (limited to 'packages/sundials')
-rw-r--r-- | packages/sundials/src/Numeric/Sundials/ARKode/ODE.hs | 1 | ||||
-rw-r--r-- | packages/sundials/src/helpers.h | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/packages/sundials/src/Numeric/Sundials/ARKode/ODE.hs b/packages/sundials/src/Numeric/Sundials/ARKode/ODE.hs index b621c58..a5083e3 100644 --- a/packages/sundials/src/Numeric/Sundials/ARKode/ODE.hs +++ b/packages/sundials/src/Numeric/Sundials/ARKode/ODE.hs | |||
@@ -75,6 +75,7 @@ C.include "<arkode/arkode_direct.h>" -- access to ARKDls interface | |||
75 | C.include "<sundials/sundials_types.h>" -- definition of type realtype | 75 | C.include "<sundials/sundials_types.h>" -- definition of type realtype |
76 | C.include "<sundials/sundials_math.h>" | 76 | C.include "<sundials/sundials_math.h>" |
77 | C.include "../../../helpers.h" | 77 | C.include "../../../helpers.h" |
78 | C.include "Bar_hsc.h" | ||
78 | 79 | ||
79 | 80 | ||
80 | getDataFromContents :: Storable b => Int -> Ptr a -> IO (V.Vector b) | 81 | getDataFromContents :: Storable b => Int -> Ptr a -> IO (V.Vector b) |
diff --git a/packages/sundials/src/helpers.h b/packages/sundials/src/helpers.h index 464ba0b..3d8fbc0 100644 --- a/packages/sundials/src/helpers.h +++ b/packages/sundials/src/helpers.h | |||
@@ -1,5 +1,3 @@ | |||
1 | typedef struct _generic_N_Vector SunVector; | ||
2 | |||
3 | /* Check function return value... | 1 | /* Check function return value... |
4 | opt == 0 means SUNDIALS function allocates memory so check if | 2 | opt == 0 means SUNDIALS function allocates memory so check if |
5 | returned NULL pointer | 3 | returned NULL pointer |