-
Notifications
You must be signed in to change notification settings - Fork 4
/
petsc-hs.cabal
155 lines (141 loc) · 5.73 KB
/
petsc-hs.cabal
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
name: petsc-hs
version: 0.1.0.0
synopsis: Haskell bindings for PETSc
description: Haskell bindings for PETSc (Portable, Extensible Toolkit for Scientific Computation, https://www.mcs.anl.gov/petsc/)
homepage: https://github.com/ocramz/petsc-hs
license: LGPL-3
license-file: LICENSE
author: Marco Zocca <zocca.marco@gmail.com>
maintainer: Marco Zocca <zocca.marco@gmail.com>
copyright: (c) 2015- , Marco Zocca
category: Numerical
build-type: Simple
-- build-type: Custom
extra-source-files: README.md
cabal-version: >=1.10
source-repository head
type: git
location: https://github.com/ocramz/petsc-hs.git
-- flag usePkgConfig
-- description: Use pkg-config to check for lib. dependencies
-- default: True
-- flag complexScalars
-- description: Default PetscScalar to (Complex CDouble)
-- default: False
library
exposed-modules: Numerical.PETSc,
Numerical.PETSc.Spec
Numerical.PETSc.Test
other-modules: Numerical.PETSc.Internal
Numerical.PETSc.Internal.Exception
Numerical.PETSc.Internal.InlineC
Numerical.PETSc.Internal.InlineCInternal
Numerical.PETSc.Internal.PutGet
Numerical.PETSc.Internal.PutGet.IS
Numerical.PETSc.Internal.PutGet.Vec
Numerical.PETSc.Internal.PutGet.Mat
Numerical.PETSc.Internal.PutGet.DM
Numerical.PETSc.Internal.PutGet.PC
Numerical.PETSc.Internal.PutGet.KSP
Numerical.PETSc.Internal.PutGet.SNES
Numerical.PETSc.Internal.PutGet.TS
Numerical.PETSc.Internal.PutGet.TAO
Numerical.PETSc.Internal.PutGet.Viewer
Numerical.PETSc.Internal.PutGet.PetscMisc
Numerical.PETSc.Internal.PutGet.SlepcMisc
Numerical.PETSc.Internal.PutGet.EPS
Numerical.PETSc.Internal.PutGet.SVD
Numerical.PETSc.Internal.PutGet
Numerical.PETSc.Internal.Sparse
Numerical.PETSc.Internal.Storable.Common
Numerical.PETSc.Internal.Storable.Vector
Numerical.PETSc.Internal.Types
Numerical.PETSc.Internal.C2HsGen.TypesC2HsGen
Numerical.PETSc.Internal.Utils
Numerical.PETSc.Internal.Product
Numerical.PETSc.Internal.Sized
build-depends: base >=4.7,
template-haskell,
containers >=0.5 && <0.6,
QuickCheck >=2.7,
hspec,
bytestring >=0.10 && <0.11,
transformers,
transformers-base,
contravariant,
monad-control,
comonad,
semigroupoids,
profunctors,
free,
inline-c > 0.5.0.0,
vector,
mtl,
async,
either,
StateVar,
mmorph,
prelude-extras,
void,
MonadRandom,
managed,
storable-complex,
split,
ad,
process,
parsers,
directory,
Cabal,
filepath
hs-source-dirs: src/
default-language: Haskell2010
ghc-options: -j2 -O2 -Wall
extra-libraries: petsc, mpich, slepc
executable petsc-example
build-depends: base >=4.7,
petsc-hs
default-language: Haskell2010
main-is: Main.hs
hs-source-dirs: test
ghc-options: -j2 -O2 -Wall
c-sources: src/Numerical/PETSc/Internal/InlineC.c
extra-libraries: petsc, mpich, slepc
executable petsc-valgrind
build-depends: base >=4.7,
petsc-hs
default-language: Haskell2010
main-is: Grind.hs
hs-source-dirs: test
-- ghc-options: -j2 -O0 -Wall -optc -g -optc -O0
ghc-options: -j2 -O0 -Wall
cc-options: -g -O0
c-sources: src/Numerical/PETSc/Internal/InlineC.c
extra-libraries: petsc, mpich, slepc
-- test-suite doctest
-- type: exitcode-stdio-1.0
-- hs-source-dirs: test
-- main-is: DocTest.hs
-- build-depends: base >= 4.7 && < 5
-- , petsc-hs
-- , Glob >= 0.7
-- , doctest >= 0.9.12
-- extra-libraries: petsc, mpich, slepc
-- executable foo
-- main-is: Main.hs, Foo.hs, Bar.hs
-- hs-source-dirs: src
-- -- Here the corresponding C sources must be listed for every module
-- -- that uses C code. In this example, Main.hs and Bar.hs do, but
-- -- Foo.hs does not.
-- c-sources: src/Main.c, src/Bar.c
-- -- These flags will be passed to the C compiler
-- cc-options: -Wall -O2
-- -- Libraries to link the code with.
-- extra-libraries: m
-- ...
-- If we were to compile the above manually we could do:
-- $ ghc -c Main.hs
-- $ cc -c Main.c -o Main_c.o
-- $ ghc Foo.hs
-- $ ghc Bar.hs
-- $ cc -c Bar.c -o Bar_c.o
-- $ ghc Main.o Foo.o Bar.o Main_c.o Bar_c.o -lm -o Main