diff options
author | Dominic Steinitz <dominic@steinitz.org> | 2018-04-23 16:20:33 +0100 |
---|---|---|
committer | Dominic Steinitz <dominic@steinitz.org> | 2018-04-23 16:20:33 +0100 |
commit | 79962d2141f356b6a8018d767e49db162a146405 (patch) | |
tree | 232b774c1b138cc554096007a0a1138b1f327450 /packages/sundials/src/Arkode.hsc | |
parent | 9f571e009bc46c26334be8b6a635db1e1d5b0341 (diff) |
Ancilliary files for the start of CVODE support
Diffstat (limited to 'packages/sundials/src/Arkode.hsc')
-rw-r--r-- | packages/sundials/src/Arkode.hsc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/packages/sundials/src/Arkode.hsc b/packages/sundials/src/Arkode.hsc index 9db37b5..558ce9e 100644 --- a/packages/sundials/src/Arkode.hsc +++ b/packages/sundials/src/Arkode.hsc | |||
@@ -10,6 +10,7 @@ import Foreign.C.Types | |||
10 | #include <nvector/nvector_serial.h> | 10 | #include <nvector/nvector_serial.h> |
11 | #include <sunmatrix/sunmatrix_dense.h> | 11 | #include <sunmatrix/sunmatrix_dense.h> |
12 | #include <arkode/arkode.h> | 12 | #include <arkode/arkode.h> |
13 | #include <cvode/cvode.h> | ||
13 | 14 | ||
14 | 15 | ||
15 | #def typedef struct _generic_N_Vector SunVector; | 16 | #def typedef struct _generic_N_Vector SunVector; |
@@ -40,6 +41,11 @@ getContentPtr ptr = (#peek SunVector, content) ptr | |||
40 | getData :: Storable a => Ptr b -> IO a | 41 | getData :: Storable a => Ptr b -> IO a |
41 | getData ptr = (#peek SunContent, data) ptr | 42 | getData ptr = (#peek SunContent, data) ptr |
42 | 43 | ||
44 | cV_ADAMS :: Int | ||
45 | cV_ADAMS = #const CV_ADAMS | ||
46 | cV_BDF :: Int | ||
47 | cV_BDF = #const CV_BDF | ||
48 | |||
43 | arkSMax :: Int | 49 | arkSMax :: Int |
44 | arkSMax = #const ARK_S_MAX | 50 | arkSMax = #const ARK_S_MAX |
45 | 51 | ||