1 |
|
2 |
######################################################## |
3 |
# |
4 |
# Copyright (c) 2003-2010 by University of Queensland |
5 |
# Earth Systems Science Computational Center (ESSCC) |
6 |
# http://www.uq.edu.au/esscc |
7 |
# |
8 |
# Primary Business: Queensland, Australia |
9 |
# Licensed under the Open Software License version 3.0 |
10 |
# http://www.opensource.org/licenses/osl-3.0.php |
11 |
# |
12 |
######################################################## |
13 |
|
14 |
Import('*') |
15 |
local_env = env.Clone() |
16 |
|
17 |
lib_name = 'paso' |
18 |
|
19 |
sources = """ |
20 |
BiCGStab.c |
21 |
BlockOps.c |
22 |
Coupler.c |
23 |
Distribution.c |
24 |
Functions.c |
25 |
GMRES.c |
26 |
GMRES2.c |
27 |
IndexList.c |
28 |
MKL.c |
29 |
NewtonGMRES.c |
30 |
Options_getPackage.c |
31 |
Options_getSolver.c |
32 |
Options_setDefaults.c |
33 |
PCG.c |
34 |
PasoUtil.c |
35 |
Pattern.c |
36 |
Pattern_getSubpattern.c |
37 |
Pattern_mis.c |
38 |
Pattern_reduceBandwidth.c |
39 |
Pattern_unrollBlocks.c |
40 |
SharedComponents.c |
41 |
Solver.c |
42 |
Transport.c |
43 |
Transport_solve.c |
44 |
FCTSolver.c |
45 |
FCTSolver_util.c |
46 |
ReactiveSolver.c |
47 |
Solver_Function.c |
48 |
Smoother.c |
49 |
ILU.c |
50 |
RILU.c |
51 |
AMG.c |
52 |
SchurComplement.c |
53 |
Preconditioner.c |
54 |
SparseMatrix.c |
55 |
SparseMatrix_MatrixVector.c |
56 |
SparseMatrix_addAbsRow.c |
57 |
SparseMatrix_addRow.c |
58 |
SparseMatrix_getSubmatrix.c |
59 |
SparseMatrix_getTranspose.c |
60 |
SparseMatrix_AMGcomponents.c |
61 |
SparseMatrix_nullifyRowsAndCols.c |
62 |
SparseMatrix_saveHB.c |
63 |
SparseMatrix_setValues.c |
64 |
SparseMatrix_invMain.c |
65 |
SystemMatrix.c |
66 |
SystemMatrixPattern.c |
67 |
SystemMatrixPattern_unrollBlocks.c |
68 |
SystemMatrix_MatrixVector.c |
69 |
SystemMatrix_borrowNormalization.c |
70 |
SystemMatrix_getSystemMatrixTypeId.c |
71 |
SystemMatrix_loadMM.c |
72 |
SystemMatrix_MIS.c |
73 |
SystemMatrix_nullifyRows.c |
74 |
SystemMatrix_nullifyRowsAndCols.c |
75 |
SystemMatrix_rowSum.c |
76 |
SystemMatrix_saveHB.c |
77 |
SystemMatrix_saveMM.c |
78 |
SystemMatrix_setValues.c |
79 |
TFQMR.c |
80 |
MINRES.c |
81 |
UMFPACK.c |
82 |
mmio.c |
83 |
performance.c |
84 |
solve.c |
85 |
""".split() |
86 |
|
87 |
headers = """ |
88 |
Common.h |
89 |
Coupler.h |
90 |
Distribution.h |
91 |
Functions.h |
92 |
IndexList.h |
93 |
MKL.h |
94 |
Options.h |
95 |
Paso.h |
96 |
PasoUtil.h |
97 |
Pattern.h |
98 |
Preconditioner.h |
99 |
SharedComponents.h |
100 |
Solver.h |
101 |
Transport.h |
102 |
FCTSolver.h |
103 |
ReactiveSolver.h |
104 |
SparseMatrix.h |
105 |
SystemMatrix.h |
106 |
SystemMatrix_MIS.h |
107 |
SystemMatrixPattern.h |
108 |
UMFPACK.h |
109 |
mmio.h |
110 |
BlockOps.h |
111 |
performance.h |
112 |
""".split() |
113 |
|
114 |
# And just for blocktimer cancer..... |
115 |
local_env.Append(LIBS = ['esysUtils']) |
116 |
if IS_WINDOWS: |
117 |
local_env.Append(CPPDEFINES = ['PASO_EXPORTS']) |
118 |
|
119 |
if local_env['share_paso']: |
120 |
lib = local_env.SharedLibrary(lib_name, sources) |
121 |
else: |
122 |
lib = local_env.StaticLibrary(lib_name, sources) |
123 |
|
124 |
env.Alias('build_paso_lib', lib) |
125 |
|
126 |
include_path = Dir('paso', local_env['incinstall']) |
127 |
solvers_include_path = Dir('Solvers', include_path) |
128 |
|
129 |
hdr_inst = local_env.Install(include_path, headers) |
130 |
env.Alias('install_paso_headers', hdr_inst) |
131 |
|
132 |
lib_inst = local_env.Install(local_env['libinstall'], lib) |
133 |
env.Alias('install_paso_lib', lib_inst) |
134 |
|