/[escript]/branches/scons-dev/paso/src/SConscript
ViewVC logotype

Contents of /branches/scons-dev/paso/src/SConscript

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1653 - (show annotations)
Wed Jul 16 00:31:11 2008 UTC (11 years, 8 months ago) by ksteube
File size: 2793 byte(s)
New scons scripts now work with scons-98 as well as scons-96...only
had to use env.Clone() instead of env.Copy().

Added copyright to each scons file.

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 try:
21 local_env = env_mpi.Clone() # scons-98.03
22 except AttributeError:
23 local_env = env_mpi.Copy() # scons-96.92
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_reduceBandwidth.c
45 Pattern_unrollBlocks.c
46 SCSL.c
47 SCSL_direct.c
48 SCSL_iterative.c
49 SharedComponents.c
50 Solver.c
51 SolverFCT.c
52 SolverFCT_FluxControl.c
53 SolverFCT_Function.c
54 SolverFCT_reset.c
55 SolverFCT_solve.c
56 Solver_Function.c
57 Solver_ILU.c
58 Solver_RILU.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_nullifyRowsAndCols.c
69 SparseMatrix_saveHB.c
70 SparseMatrix_setValues.c
71 SystemMatrix.c
72 SystemMatrixPattern.c
73 SystemMatrixPattern_unrollBlocks.c
74 SystemMatrix_MatrixVector.c
75 SystemMatrix_borrowNormalization.c
76 SystemMatrix_getSystemMatrixTypeId.c
77 SystemMatrix_loadMM.c
78 SystemMatrix_nullifyRows.c
79 SystemMatrix_nullifyRowsAndCols.c
80 SystemMatrix_rowSum.c
81 SystemMatrix_saveHB.c
82 SystemMatrix_saveMM.c
83 SystemMatrix_setValues.c
84 UMFPACK.c
85 mmio.c
86 performance.c
87 solve.c
88 """.split()
89 headers = """
90 Common.h
91 Coupler.h
92 Distribution.h
93 Functions.h
94 MKL.h
95 Options.h
96 Paso.h
97 PasoUtil.h
98 Paso_MPI.h
99 Pattern.h
100 SCSL.h
101 SharedComponents.h
102 Solver.h
103 SolverFCT.h
104 SparseMatrix.h
105 SystemMatrix.h
106 SystemMatrixPattern.h
107 UMFPACK.h
108 mmio.h
109 mpi_C.h
110 performance.h
111 """.split()
112
113 if local_env['mkl_libs']:
114 local_env.Append(CPPDEFINES=['MKL',])
115 local_env.Append(LIBS = local_env['mkl_libs'])
116
117 if local_env['papi_instrument_solver']:
118 local_env.Append(CPPDEFINES=['PAPI',])
119 if local_env['papi_libs']:
120 local_env.Append(LIBS = local_env['papi_libs'])
121 local_env.Append(CPPDEFINES=['BLOCKPAPI',])
122
123 lib = local_env.StaticLibrary('paso', sources)
124 env.Alias('target_paso_a', lib)
125
126 include_path = Dir('paso', 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(libinstall, lib)
133 env.Alias('target_install_paso_a', [tmp2])
134

  ViewVC Help
Powered by ViewVC 1.1.26