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

Contents of /trunk/paso/src/SConscript

Parent Directory Parent Directory | Revision Log Revision Log


Revision 495 - (show annotations)
Mon Feb 6 06:32:06 2006 UTC (13 years, 4 months ago) by gross
File size: 2742 byte(s)
performance monitoring added. complies without PAPI.
1 libinstall = None
2 incinstall = None
3
4 Import('*')
5
6 import os
7 import string
8 paso_env = Environment(ENV = os.environ)
9
10 paso_path = str(esysroot) + '/paso/src'
11 solvers_path = str(esysroot) + '/paso/src/Solvers'
12 mmio_path = str(esysroot) + '/tools/mmio/inc'
13
14 cpp_path = [paso_path,
15 solvers_path,
16 mmio_path,
17 python_path,
18 boost_path]
19
20 paso_env.Replace(CC = cc)
21 paso_env.Replace(CCFLAGS = cc_flags)
22 if len(mkl_libs) >0: paso_env.Append(CCFLAGS=' -DMKL')
23 if len(mkl_path) >0: cpp_path.append(mkl_path)
24 if len(scsl_libs)>0 : paso_env.Append(CCFLAGS=' -DSCSL')
25 if len(scsl_path)>0: cpp_path.append(scsl_path)
26 if len(umfpack_libs)>0 : paso_env.Append(CCFLAGS=' -DUMFPACK')
27 if len(umfpack_path)>0: cpp_path.append(umfpack_path)
28 paso_env.Replace(CPPPATH = cpp_path)
29 paso_env.Replace(ARFLAGS = ar_flags)
30
31 lib = 'paso'
32
33 incs = ['Common.h',
34 'MKL.h',
35 'Options.h',
36 'Paso.h',
37 'SCSL.h',
38 'SystemMatrix.h',
39 'SystemMatrixPattern.h',
40 'PasoUtil.h',
41 'performance.h',
42 'Solvers/Solver.h']
43
44 sources = ['Options_getPackage.c',
45 'Options_getSolver.c',
46 'Options_setDefaults.c',
47 'performance.c',
48 'Paso.c',
49 'solve.c',
50 'SystemMatrix_borrowNormalization.c',
51 'SystemMatrix.c',
52 'SystemMatrix_copy.c',
53 'SystemMatrix_getSubmatrix.c',
54 'SystemMatrix_getSystemMatrixTypeId.c',
55 'SystemMatrix_loadMM.c',
56 'SystemMatrix_MatrixVector.c',
57 'SystemMatrix_nullifyRowsAndCols.c',
58 'SystemMatrixPattern.c',
59 'SystemMatrixPattern_getSubpattern.c',
60 'SystemMatrixPattern_mis.c',
61 'SystemMatrixPattern_unrollBlocks.c',
62 'SystemMatrix_saveHB.c',
63 'SystemMatrix_saveMM.c',
64 'SystemMatrix_setValues.c',
65 'PasoUtil.c',
66 'MKL.c',
67 'SCSL.c',
68 'SCSL_direct.c',
69 'SCSL_iterative.c',
70 'Solvers/BiCGStab.c',
71 'Solvers/GMRES.c',
72 'Solvers/PCG.c',
73 'Solvers/Solver_applyBlockDiagonalMatrix.c',
74 'Solvers/Solver.c',
75 'Solvers/Solver_ILU.c',
76 'Solvers/Solver_RILU.c',
77 'Solvers/Solver_jacobi.c',
78 'Solvers/Solver_preconditioner.c',
79 'Solvers/Solver_SchurComplement.c']
80
81 paso_lib = paso_env.StaticLibrary(lib, sources)
82
83 Default(paso_env.Install(incdir, incs))
84 Default(paso_env.Install(incdir2, incs))
85 if incinstall != None:
86 Default(paso_env.Install(incinstall, incs))
87
88 Default(paso_env.Install(libdir, paso_lib))
89 Default(paso_env.Install(libdir2, paso_lib))
90 if libinstall != None:
91 Default(paso_env.Install(libinstall, paso_lib))

  ViewVC Help
Powered by ViewVC 1.1.26