/[escript]/trunk/paso/src/SConscript
ViewVC logotype

Contents of /trunk/paso/src/SConscript

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2760 - (show annotations)
Thu Nov 19 05:22:45 2009 UTC (9 years, 10 months ago) by artak
File size: 2710 byte(s)
The first version of the new AMG preconditioner. It need a lot of polishing for efficiency. Old AMG now called AMLI preconditioner.
1
2 ########################################################
3 #
4 # Copyright (c) 2003-2009 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 # And just for blocktimer cancer.....
21 local_env.Append(LIBS = ['esysUtils'])
22
23 lib_name = 'paso'
24
25 sources = """
26 BiCGStab.c
27 Coupler.c
28 Distribution.c
29 Functions.c
30 GMRES.c
31 GMRES2.c
32 MKL.c
33 NewtonGMRES.c
34 Options_getPackage.c
35 Options_getSolver.c
36 Options_setDefaults.c
37 PCG.c
38 Paso.c
39 PasoUtil.c
40 Paso_MPI.c
41 Pattern.c
42 Pattern_getSubpattern.c
43 Pattern_mis.c
44 Pattern_coupling.c
45 Pattern_reduceBandwidth.c
46 Pattern_unrollBlocks.c
47 SharedComponents.c
48 Solver.c
49 SolverFCT.c
50 SolverFCT_FluxControl.c
51 SolverFCT_reset.c
52 SolverFCT_solve.c
53 Solver_Function.c
54 Solver_GS.c
55 Solver_ILU.c
56 Solver_RILU.c
57 Solver_AMG.c
58 Solver_AMLI.c
59 Solver_SchurComplement.c
60 Solver_applyBlockDiagonalMatrix.c
61 Solver_jacobi.c
62 Solver_preconditioner.c
63 SparseMatrix.c
64 SparseMatrix_MatrixVector.c
65 SparseMatrix_addAbsRow.c
66 SparseMatrix_addRow.c
67 SparseMatrix_getSubmatrix.c
68 SparseMatrix_AMGcomponents.c
69 SparseMatrix_nullifyRowsAndCols.c
70 SparseMatrix_saveHB.c
71 SparseMatrix_setValues.c
72 SystemMatrix.c
73 SystemMatrixPattern.c
74 SystemMatrixPattern_unrollBlocks.c
75 SystemMatrix_MatrixVector.c
76 SystemMatrix_borrowNormalization.c
77 SystemMatrix_getSystemMatrixTypeId.c
78 SystemMatrix_loadMM.c
79 SystemMatrix_nullifyRows.c
80 SystemMatrix_nullifyRowsAndCols.c
81 SystemMatrix_rowSum.c
82 SystemMatrix_saveHB.c
83 SystemMatrix_saveMM.c
84 SystemMatrix_setValues.c
85 TFQMR.c
86 MINRES.c
87 UMFPACK.c
88 mmio.c
89 performance.c
90 solve.c
91 """.split()
92 headers = """
93 Common.h
94 Coupler.h
95 Distribution.h
96 Functions.h
97 MKL.h
98 Options.h
99 Paso.h
100 PasoUtil.h
101 Paso_MPI.h
102 Pattern.h
103 Pattern_coupling.h
104 SharedComponents.h
105 Solver.h
106 SolverFCT.h
107 SparseMatrix.h
108 SystemMatrix.h
109 SystemMatrixPattern.h
110 UMFPACK.h
111 mmio.h
112 mpi_C.h
113 performance.h
114 """.split()
115
116 if IS_WINDOWS_PLATFORM :
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('target_paso_a', lib)
125
126 include_path = Dir('paso', local_env['incinstall'])
127 solvers_include_path = Dir('Solvers', include_path)
128
129 tmp1 = local_env.Install(include_path, headers )
130 env.Alias('target_install_paso_headers', [tmp1])
131
132 tmp2 = local_env.Install(local_env['libinstall'], lib)
133 env.Alias('target_install_paso_a', [tmp2])
134

  ViewVC Help
Powered by ViewVC 1.1.26