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

Contents of /trunk/paso/src/SConscript

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2057 - (show annotations)
Mon Nov 17 13:30:46 2008 UTC (10 years, 9 months ago) by phornby
File size: 2636 byte(s)
Prepare this file for the possibility of dynamic linkage.

SVN is doing something weird to me... I'm sure I committed this change already...
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 lib_name = 'paso'
21
22 sources = """
23 BiCGStab.c
24 Coupler.c
25 Distribution.c
26 Functions.c
27 GMRES.c
28 GMRES2.c
29 MKL.c
30 NewtonGMRES.c
31 Options_getPackage.c
32 Options_getSolver.c
33 Options_setDefaults.c
34 PCG.c
35 Paso.c
36 PasoUtil.c
37 Paso_MPI.c
38 Pattern.c
39 Pattern_getSubpattern.c
40 Pattern_mis.c
41 Pattern_coupling.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_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_SchurComplement.c
59 Solver_applyBlockDiagonalMatrix.c
60 Solver_jacobi.c
61 Solver_preconditioner.c
62 SparseMatrix.c
63 SparseMatrix_MatrixVector.c
64 SparseMatrix_addAbsRow.c
65 SparseMatrix_addRow.c
66 SparseMatrix_getSubmatrix.c
67 SparseMatrix_nullifyRowsAndCols.c
68 SparseMatrix_saveHB.c
69 SparseMatrix_setValues.c
70 SystemMatrix.c
71 SystemMatrixPattern.c
72 SystemMatrixPattern_unrollBlocks.c
73 SystemMatrix_MatrixVector.c
74 SystemMatrix_borrowNormalization.c
75 SystemMatrix_getSystemMatrixTypeId.c
76 SystemMatrix_loadMM.c
77 SystemMatrix_nullifyRows.c
78 SystemMatrix_nullifyRowsAndCols.c
79 SystemMatrix_rowSum.c
80 SystemMatrix_saveHB.c
81 SystemMatrix_saveMM.c
82 SystemMatrix_setValues.c
83 TFQMR.c
84 MINRES.c
85 UMFPACK.c
86 mmio.c
87 performance.c
88 solve.c
89 """.split()
90 headers = """
91 Common.h
92 Coupler.h
93 Distribution.h
94 Functions.h
95 MKL.h
96 Options.h
97 Paso.h
98 PasoUtil.h
99 Paso_MPI.h
100 Pattern.h
101 Pattern_coupling.h
102 SCSL.h
103 SharedComponents.h
104 Solver.h
105 SolverFCT.h
106 SparseMatrix.h
107 SystemMatrix.h
108 SystemMatrixPattern.h
109 UMFPACK.h
110 mmio.h
111 mpi_C.h
112 performance.h
113 """.split()
114
115 if IS_WINDOWS_PLATFORM :
116 local_env.Append(CPPDEFINES = ['PASO_EXPORTS'])
117
118 if local_env['share_paso'] :
119 lib = local_env.SharedLibrary(lib_name, sources)
120 else:
121 lib = local_env.StaticLibrary(lib_name, sources)
122
123 env.Alias('target_paso_a', lib)
124
125 include_path = Dir('paso', local_env['incinstall'])
126 solvers_include_path = Dir('Solvers', include_path)
127
128 tmp1 = local_env.Install(include_path, headers )
129 env.Alias('target_install_paso_headers', [tmp1])
130
131 tmp2 = local_env.Install(local_env['libinstall'], lib)
132 env.Alias('target_install_paso_a', [tmp2])
133

  ViewVC Help
Powered by ViewVC 1.1.26