1 |
|
2 |
######################################################## |
3 |
# |
4 |
# Copyright (c) 2003-2008 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 |
|
15 |
import os |
16 |
Import('*') |
17 |
|
18 |
local_env = clone_env(env_mpi) |
19 |
|
20 |
sources = """ |
21 |
BiCGStab.c |
22 |
Coupler.c |
23 |
Distribution.c |
24 |
Functions.c |
25 |
GMRES.c |
26 |
GMRES2.c |
27 |
MKL.c |
28 |
NewtonGMRES.c |
29 |
Options_getPackage.c |
30 |
Options_getSolver.c |
31 |
Options_setDefaults.c |
32 |
PCG.c |
33 |
Paso.c |
34 |
PasoUtil.c |
35 |
Paso_MPI.c |
36 |
Pattern.c |
37 |
Pattern_getSubpattern.c |
38 |
Pattern_mis.c |
39 |
Pattern_coupling.c |
40 |
Pattern_reduceBandwidth.c |
41 |
Pattern_unrollBlocks.c |
42 |
SCSL.c |
43 |
SCSL_direct.c |
44 |
SCSL_iterative.c |
45 |
SharedComponents.c |
46 |
Solver.c |
47 |
SolverFCT.c |
48 |
SolverFCT_FluxControl.c |
49 |
SolverFCT_reset.c |
50 |
SolverFCT_solve.c |
51 |
Solver_Function.c |
52 |
Solver_GS.c |
53 |
Solver_ILU.c |
54 |
Solver_RILU.c |
55 |
Solver_AMG.c |
56 |
Solver_SchurComplement.c |
57 |
Solver_applyBlockDiagonalMatrix.c |
58 |
Solver_jacobi.c |
59 |
Solver_preconditioner.c |
60 |
SparseMatrix.c |
61 |
SparseMatrix_MatrixVector.c |
62 |
SparseMatrix_addAbsRow.c |
63 |
SparseMatrix_addRow.c |
64 |
SparseMatrix_getSubmatrix.c |
65 |
SparseMatrix_nullifyRowsAndCols.c |
66 |
SparseMatrix_saveHB.c |
67 |
SparseMatrix_setValues.c |
68 |
SystemMatrix.c |
69 |
SystemMatrixPattern.c |
70 |
SystemMatrixPattern_unrollBlocks.c |
71 |
SystemMatrix_MatrixVector.c |
72 |
SystemMatrix_borrowNormalization.c |
73 |
SystemMatrix_getSystemMatrixTypeId.c |
74 |
SystemMatrix_loadMM.c |
75 |
SystemMatrix_nullifyRows.c |
76 |
SystemMatrix_nullifyRowsAndCols.c |
77 |
SystemMatrix_rowSum.c |
78 |
SystemMatrix_saveHB.c |
79 |
SystemMatrix_saveMM.c |
80 |
SystemMatrix_setValues.c |
81 |
TFQMR.c |
82 |
MINRES.c |
83 |
UMFPACK.c |
84 |
mmio.c |
85 |
performance.c |
86 |
solve.c |
87 |
""".split() |
88 |
headers = """ |
89 |
Common.h |
90 |
Coupler.h |
91 |
Distribution.h |
92 |
Functions.h |
93 |
MKL.h |
94 |
Options.h |
95 |
Paso.h |
96 |
PasoUtil.h |
97 |
Paso_MPI.h |
98 |
Pattern.h |
99 |
SCSL.h |
100 |
SharedComponents.h |
101 |
Solver.h |
102 |
SolverFCT.h |
103 |
SparseMatrix.h |
104 |
SystemMatrix.h |
105 |
SystemMatrixPattern.h |
106 |
UMFPACK.h |
107 |
mmio.h |
108 |
mpi_C.h |
109 |
performance.h |
110 |
""".split() |
111 |
|
112 |
lib = local_env.StaticLibrary('paso', sources) |
113 |
env.Alias('target_paso_a', lib) |
114 |
|
115 |
include_path = Dir('paso', local_env['incinstall']) |
116 |
solvers_include_path = Dir('Solvers', include_path) |
117 |
|
118 |
tmp1 = local_env.Install(include_path, headers ) |
119 |
env.Alias('target_install_paso_headers', [tmp1]) |
120 |
|
121 |
tmp2 = local_env.Install(local_env['libinstall'], lib) |
122 |
env.Alias('target_install_paso_a', [tmp2]) |
123 |
|