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

Annotation of /trunk/paso/src/SConscript

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2987 - (hide annotations)
Tue Mar 16 01:32:43 2010 UTC (9 years, 9 months ago) by gross
File size: 2800 byte(s)
FCT solver rewritten
1 ksteube 1811
2     ########################################################
3 ksteube 1705 #
4 jfenwick 2881 # Copyright (c) 2003-2010 by University of Queensland
5 ksteube 1811 # Earth Systems Science Computational Center (ESSCC)
6     # http://www.uq.edu.au/esscc
7 ksteube 1705 #
8 ksteube 1811 # 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 ksteube 1705 #
12 ksteube 1811 ########################################################
13 ksteube 1705
14 ksteube 1811
15 gross 700 import os
16 jgs 187 Import('*')
17    
18 ksteube 1705 local_env = clone_env(env_mpi)
19 jgs 187
20 phornby 2078 # And just for blocktimer cancer.....
21     local_env.Append(LIBS = ['esysUtils'])
22    
23 phornby 2057 lib_name = 'paso'
24    
25 ksteube 1705 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 artak 1844 Pattern_coupling.c
45 ksteube 1705 Pattern_reduceBandwidth.c
46     Pattern_unrollBlocks.c
47     SharedComponents.c
48     Solver.c
49 gross 2987 Transport.c
50     Transport_solve.c
51     FCTSolver.c
52     FCTSolver_util.c
53     ReactiveSolver.c
54 ksteube 1705 Solver_Function.c
55 artak 1819 Solver_GS.c
56 ksteube 1705 Solver_ILU.c
57     Solver_RILU.c
58 artak 1844 Solver_AMG.c
59 artak 2760 Solver_AMLI.c
60 ksteube 1705 Solver_SchurComplement.c
61     Solver_applyBlockDiagonalMatrix.c
62     Solver_jacobi.c
63     Solver_preconditioner.c
64     SparseMatrix.c
65     SparseMatrix_MatrixVector.c
66     SparseMatrix_addAbsRow.c
67     SparseMatrix_addRow.c
68     SparseMatrix_getSubmatrix.c
69 artak 2760 SparseMatrix_AMGcomponents.c
70 ksteube 1705 SparseMatrix_nullifyRowsAndCols.c
71     SparseMatrix_saveHB.c
72     SparseMatrix_setValues.c
73     SystemMatrix.c
74     SystemMatrixPattern.c
75     SystemMatrixPattern_unrollBlocks.c
76     SystemMatrix_MatrixVector.c
77     SystemMatrix_borrowNormalization.c
78     SystemMatrix_getSystemMatrixTypeId.c
79     SystemMatrix_loadMM.c
80 jfenwick 2965 SystemMatrix_MIS.c
81 ksteube 1705 SystemMatrix_nullifyRows.c
82     SystemMatrix_nullifyRowsAndCols.c
83     SystemMatrix_rowSum.c
84     SystemMatrix_saveHB.c
85     SystemMatrix_saveMM.c
86     SystemMatrix_setValues.c
87     TFQMR.c
88 artak 1787 MINRES.c
89 ksteube 1705 UMFPACK.c
90     mmio.c
91     performance.c
92     solve.c
93     """.split()
94     headers = """
95     Common.h
96     Coupler.h
97     Distribution.h
98     Functions.h
99     MKL.h
100     Options.h
101     Paso.h
102     PasoUtil.h
103     Paso_MPI.h
104     Pattern.h
105 phornby 1913 Pattern_coupling.h
106 ksteube 1705 SharedComponents.h
107     Solver.h
108 gross 2987 Transport.h
109     FCTSolver.h
110     ReactiveSolver.h
111 ksteube 1705 SparseMatrix.h
112     SystemMatrix.h
113 jfenwick 2965 SystemMatrix_MIS.h
114 ksteube 1705 SystemMatrixPattern.h
115     UMFPACK.h
116     mmio.h
117     mpi_C.h
118     performance.h
119     """.split()
120 gross 700
121 phornby 2057 if IS_WINDOWS_PLATFORM :
122     local_env.Append(CPPDEFINES = ['PASO_EXPORTS'])
123    
124     if local_env['share_paso'] :
125     lib = local_env.SharedLibrary(lib_name, sources)
126     else:
127     lib = local_env.StaticLibrary(lib_name, sources)
128    
129 ksteube 1705 env.Alias('target_paso_a', lib)
130 jgs 187
131 ksteube 1705 include_path = Dir('paso', local_env['incinstall'])
132     solvers_include_path = Dir('Solvers', include_path)
133 jgs 190
134 ksteube 1705 tmp1 = local_env.Install(include_path, headers )
135     env.Alias('target_install_paso_headers', [tmp1])
136 gross 425
137 ksteube 1705 tmp2 = local_env.Install(local_env['libinstall'], lib)
138     env.Alias('target_install_paso_a', [tmp2])
139 robwdcock 682

  ViewVC Help
Powered by ViewVC 1.1.26