1 |
# |
2 |
# $Id$ |
3 |
# |
4 |
####################################################### |
5 |
# |
6 |
# Copyright 2003-2007 by ACceSS MNRF |
7 |
# Copyright 2007 by University of Queensland |
8 |
# |
9 |
# http://esscc.uq.edu.au |
10 |
# Primary Business: Queensland, Australia |
11 |
# Licensed under the Open Software License version 3.0 |
12 |
# http://www.opensource.org/licenses/osl-3.0.php |
13 |
# |
14 |
####################################################### |
15 |
# |
16 |
|
17 |
import os |
18 |
Import('*') |
19 |
|
20 |
if 'Clone' in dir(env): local_env = env_mpi.Clone() # scons-0.98 |
21 |
else: local_env = env_mpi.Copy() # scons-0.96 |
22 |
|
23 |
sources = """ |
24 |
BiCGStab.c |
25 |
Coupler.c |
26 |
Distribution.c |
27 |
Functions.c |
28 |
GMRES.c |
29 |
GMRES2.c |
30 |
MKL.c |
31 |
NewtonGMRES.c |
32 |
Options_getPackage.c |
33 |
Options_getSolver.c |
34 |
Options_setDefaults.c |
35 |
PCG.c |
36 |
Paso.c |
37 |
PasoUtil.c |
38 |
Paso_MPI.c |
39 |
Pattern.c |
40 |
Pattern_getSubpattern.c |
41 |
Pattern_mis.c |
42 |
Pattern_reduceBandwidth.c |
43 |
Pattern_unrollBlocks.c |
44 |
SCSL.c |
45 |
SCSL_direct.c |
46 |
SCSL_iterative.c |
47 |
SharedComponents.c |
48 |
Solver.c |
49 |
SolverFCT.c |
50 |
SolverFCT_FluxControl.c |
51 |
SolverFCT_Function.c |
52 |
SolverFCT_reset.c |
53 |
SolverFCT_solve.c |
54 |
Solver_Function.c |
55 |
Solver_ILU.c |
56 |
Solver_RILU.c |
57 |
Solver_SchurComplement.c |
58 |
Solver_applyBlockDiagonalMatrix.c |
59 |
Solver_jacobi.c |
60 |
Solver_preconditioner.c |
61 |
SparseMatrix.c |
62 |
SparseMatrix_MatrixVector.c |
63 |
SparseMatrix_addAbsRow.c |
64 |
SparseMatrix_addRow.c |
65 |
SparseMatrix_getSubmatrix.c |
66 |
SparseMatrix_nullifyRowsAndCols.c |
67 |
SparseMatrix_saveHB.c |
68 |
SparseMatrix_setValues.c |
69 |
SystemMatrix.c |
70 |
SystemMatrixPattern.c |
71 |
SystemMatrixPattern_unrollBlocks.c |
72 |
SystemMatrix_MatrixVector.c |
73 |
SystemMatrix_borrowNormalization.c |
74 |
SystemMatrix_getSystemMatrixTypeId.c |
75 |
SystemMatrix_loadMM.c |
76 |
SystemMatrix_nullifyRows.c |
77 |
SystemMatrix_nullifyRowsAndCols.c |
78 |
SystemMatrix_rowSum.c |
79 |
SystemMatrix_saveHB.c |
80 |
SystemMatrix_saveMM.c |
81 |
SystemMatrix_setValues.c |
82 |
UMFPACK.c |
83 |
mmio.c |
84 |
performance.c |
85 |
solve.c |
86 |
""".split() |
87 |
headers = """ |
88 |
Common.h |
89 |
Coupler.h |
90 |
Distribution.h |
91 |
Functions.h |
92 |
MKL.h |
93 |
Options.h |
94 |
Paso.h |
95 |
PasoUtil.h |
96 |
Paso_MPI.h |
97 |
Pattern.h |
98 |
SCSL.h |
99 |
SharedComponents.h |
100 |
Solver.h |
101 |
SolverFCT.h |
102 |
SparseMatrix.h |
103 |
SystemMatrix.h |
104 |
SystemMatrixPattern.h |
105 |
UMFPACK.h |
106 |
mmio.h |
107 |
mpi_C.h |
108 |
performance.h |
109 |
""".split() |
110 |
|
111 |
lib = local_env.StaticLibrary('paso', sources) |
112 |
env.Alias('target_paso_a', lib) |
113 |
|
114 |
include_path = Dir('paso', local_env['incinstall']) |
115 |
solvers_include_path = Dir('Solvers', include_path) |
116 |
|
117 |
tmp1 = local_env.Install(include_path, headers ) |
118 |
env.Alias('target_install_paso_headers', [tmp1]) |
119 |
|
120 |
tmp2 = local_env.Install(local_env['libinstall'], lib) |
121 |
env.Alias('target_install_paso_a', [tmp2]) |
122 |
|