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

Contents of /trunk/paso/src/SConscript

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3120 - (show annotations)
Mon Aug 30 10:48:00 2010 UTC (9 years, 7 months ago) by gross
File size: 2782 byte(s)
first iteration on Paso code clean up
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
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 BlockOps.c
28 Coupler.c
29 Distribution.c
30 Functions.c
31 GMRES.c
32 GMRES2.c
33 MKL.c
34 NewtonGMRES.c
35 Options_getPackage.c
36 Options_getSolver.c
37 Options_setDefaults.c
38 PCG.c
39 Paso.c
40 PasoUtil.c
41 Paso_MPI.c
42 Pattern.c
43 Pattern_getSubpattern.c
44 Pattern_mis.c
45 Pattern_coupling.c
46 Pattern_reduceBandwidth.c
47 Pattern_unrollBlocks.c
48 SharedComponents.c
49 Solver.c
50 Transport.c
51 Transport_solve.c
52 FCTSolver.c
53 FCTSolver_util.c
54 ReactiveSolver.c
55 Solver_Function.c
56 GS.c
57 ILU.c
58 RILU.c
59 AMG.c
60 AMLI.c
61 SchurComplement.c
62 Jacobi.c
63 Preconditioner.c
64 SparseMatrix.c
65 SparseMatrix_MatrixVector.c
66 SparseMatrix_addAbsRow.c
67 SparseMatrix_addRow.c
68 SparseMatrix_getSubmatrix.c
69 SparseMatrix_AMGcomponents.c
70 SparseMatrix_nullifyRowsAndCols.c
71 SparseMatrix_saveHB.c
72 SparseMatrix_setValues.c
73 SparseMatrix_invMain.c
74 SystemMatrix.c
75 SystemMatrixPattern.c
76 SystemMatrixPattern_unrollBlocks.c
77 SystemMatrix_MatrixVector.c
78 SystemMatrix_borrowNormalization.c
79 SystemMatrix_getSystemMatrixTypeId.c
80 SystemMatrix_loadMM.c
81 SystemMatrix_MIS.c
82 SystemMatrix_nullifyRows.c
83 SystemMatrix_nullifyRowsAndCols.c
84 SystemMatrix_rowSum.c
85 SystemMatrix_saveHB.c
86 SystemMatrix_saveMM.c
87 SystemMatrix_setValues.c
88 TFQMR.c
89 MINRES.c
90 UMFPACK.c
91 mmio.c
92 performance.c
93 solve.c
94 """.split()
95 headers = """
96 Common.h
97 Coupler.h
98 Distribution.h
99 Functions.h
100 MKL.h
101 Options.h
102 Paso.h
103 PasoUtil.h
104 Paso_MPI.h
105 Pattern.h
106 Pattern_coupling.h
107 Preconditioner.h
108 SharedComponents.h
109 Solver.h
110 Transport.h
111 FCTSolver.h
112 ReactiveSolver.h
113 SparseMatrix.h
114 SystemMatrix.h
115 SystemMatrix_MIS.h
116 SystemMatrixPattern.h
117 UMFPACK.h
118 mmio.h
119 mpi_C.h
120 BlockOps.h
121 performance.h
122 """.split()
123
124 if IS_WINDOWS_PLATFORM :
125 local_env.Append(CPPDEFINES = ['PASO_EXPORTS'])
126
127 if local_env['share_paso'] :
128 lib = local_env.SharedLibrary(lib_name, sources)
129 else:
130 lib = local_env.StaticLibrary(lib_name, sources)
131
132 env.Alias('target_paso_a', lib)
133
134 include_path = Dir('paso', local_env['incinstall'])
135 solvers_include_path = Dir('Solvers', include_path)
136
137 tmp1 = local_env.Install(include_path, headers )
138 env.Alias('target_install_paso_headers', [tmp1])
139
140 tmp2 = local_env.Install(local_env['libinstall'], lib)
141 env.Alias('target_install_paso_a', [tmp2])
142

  ViewVC Help
Powered by ViewVC 1.1.26