diff options
author | Dominic Steinitz <dominic@steinitz.org> | 2018-05-02 14:42:43 +0100 |
---|---|---|
committer | Dominic Steinitz <dominic@steinitz.org> | 2018-05-02 14:42:43 +0100 |
commit | 4ba859636396d211637b5507f19722b6953656a5 (patch) | |
tree | 9493c4851e6141a400e6345efe59a07197709f63 /packages/sundials/src/Numeric/Sundials/ODEOpts.hs | |
parent | 149dedfc6ec8dea039a4df7ad1d31880820c52eb (diff) |
Add more options
Diffstat (limited to 'packages/sundials/src/Numeric/Sundials/ODEOpts.hs')
-rw-r--r-- | packages/sundials/src/Numeric/Sundials/ODEOpts.hs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/packages/sundials/src/Numeric/Sundials/ODEOpts.hs b/packages/sundials/src/Numeric/Sundials/ODEOpts.hs index 89f2306..027d99a 100644 --- a/packages/sundials/src/Numeric/Sundials/ODEOpts.hs +++ b/packages/sundials/src/Numeric/Sundials/ODEOpts.hs | |||
@@ -1,6 +1,6 @@ | |||
1 | module Numeric.Sundials.ODEOpts where | 1 | module Numeric.Sundials.ODEOpts where |
2 | 2 | ||
3 | import Data.Int (Int32) | 3 | import Data.Word (Word32) |
4 | import qualified Data.Vector.Storable as VS | 4 | import qualified Data.Vector.Storable as VS |
5 | 5 | ||
6 | import Numeric.LinearAlgebra.HMatrix (Vector, Matrix) | 6 | import Numeric.LinearAlgebra.HMatrix (Vector, Matrix) |
@@ -9,11 +9,12 @@ import Numeric.LinearAlgebra.HMatrix (Vector, Matrix) | |||
9 | type Jacobian = Double -> Vector Double -> Matrix Double | 9 | type Jacobian = Double -> Vector Double -> Matrix Double |
10 | 10 | ||
11 | data ODEOpts = ODEOpts { | 11 | data ODEOpts = ODEOpts { |
12 | maxNumSteps :: Int32 | 12 | maxNumSteps :: Word32 |
13 | , minStep :: Double | 13 | , minStep :: Double |
14 | , relTol :: Double | 14 | , relTol :: Double |
15 | , absTols :: VS.Vector Double | 15 | , absTols :: VS.Vector Double |
16 | , initStep :: Double | 16 | , initStep :: Maybe Double |
17 | , maxFail :: Word32 | ||
17 | } deriving (Read, Show, Eq, Ord) | 18 | } deriving (Read, Show, Eq, Ord) |
18 | 19 | ||
19 | data SundialsDiagnostics = SundialsDiagnostics { | 20 | data SundialsDiagnostics = SundialsDiagnostics { |