summaryrefslogtreecommitdiff
path: root/packages/sundials
diff options
context:
space:
mode:
Diffstat (limited to 'packages/sundials')
-rw-r--r--packages/sundials/hmatrix-sundials.cabal3
-rw-r--r--packages/sundials/src/Bar.hsc8
2 files changed, 7 insertions, 4 deletions
diff --git a/packages/sundials/hmatrix-sundials.cabal b/packages/sundials/hmatrix-sundials.cabal
index 3304cb8..83a30c7 100644
--- a/packages/sundials/hmatrix-sundials.cabal
+++ b/packages/sundials/hmatrix-sundials.cabal
@@ -30,6 +30,7 @@ library
30 exposed-modules: Numeric.Sundials.Arkode.ODE 30 exposed-modules: Numeric.Sundials.Arkode.ODE
31 other-modules: Types, 31 other-modules: Types,
32 Bar 32 Bar
33 c-sources: src/helpers.c src/helpers.h
33 34
34executable sundials 35executable sundials
35 main-is: Main.hs 36 main-is: Main.hs
@@ -51,4 +52,4 @@ executable sundials
51 hs-source-dirs: src 52 hs-source-dirs: src
52 default-language: Haskell2010 53 default-language: Haskell2010
53 extra-libraries: sundials_arkode 54 extra-libraries: sundials_arkode
54 C-sources: src/helpers.c src/helpers.h 55 c-sources: src/helpers.c src/helpers.h
diff --git a/packages/sundials/src/Bar.hsc b/packages/sundials/src/Bar.hsc
index 4fe1b4b..26f0bf0 100644
--- a/packages/sundials/src/Bar.hsc
+++ b/packages/sundials/src/Bar.hsc
@@ -6,9 +6,11 @@ import Foreign
6import Foreign.C.Types 6import Foreign.C.Types
7import Foreign.C.String 7import Foreign.C.String
8 8
9#include "/Users/dom/sundials/include/sundials/sundials_nvector.h" 9
10#include "/Users/dom/sundials/include/nvector/nvector_serial.h" 10#include <stdio.h>
11#include "/Users/dom/sundials/include/arkode/arkode.h" 11#include <sundials/sundials_nvector.h>
12#include <nvector/nvector_serial.h>
13#include <arkode/arkode.h>
12 14
13#def typedef struct _generic_N_Vector SunVector; 15#def typedef struct _generic_N_Vector SunVector;
14#def typedef struct _N_VectorContent_Serial SunContent; 16#def typedef struct _N_VectorContent_Serial SunContent;