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

Contents of /trunk/paso/src/SConscript

Parent Directory Parent Directory | Revision Log Revision Log


Revision 584 - (show annotations)
Thu Mar 9 23:03:38 2006 UTC (13 years, 4 months ago) by gross
File size: 2862 byte(s)
eigenvalues: compiles and passes tests on altix now
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 = Dir(str(esysroot) + '/paso/src')
11 solvers_path = Dir(str(esysroot) + '/paso/src/Solvers')
12 mmio_path = Dir(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(scsl_libs)>0 : paso_env.Append(CCFLAGS=' -DSCSL')
24 if len(mkl_path)>0: cpp_path.append(mkl_path)
25 if len(scsl_path)>0: cpp_path.append(scsl_path)
26 if len(umfpack_path)>0: cpp_path.append(umfpack_path)
27 if len(papi_path)>0: cpp_path.append(papi_path)
28 if len(umfpack_libs)>0 : paso_env.Append(CCFLAGS=' -DUMFPACK')
29 if len(papi_libs)>0 : paso_env.Append(CCFLAGS=' -DPAPI')
30
31 paso_env.Replace(CPPPATH = cpp_path)
32 paso_env.Replace(ARFLAGS = ar_flags)
33
34 lib = 'paso'
35
36 incs = ['Common.h',
37 'MKL.h',
38 'Options.h',
39 'Paso.h',
40 'SCSL.h',
41 'SystemMatrix.h',
42 'SystemMatrixPattern.h',
43 'PasoUtil.h',
44 'performance.h',
45 'Solvers/Solver.h']
46
47 sources = ['Options_getPackage.c',
48 'Options_getSolver.c',
49 'Options_setDefaults.c',
50 'performance.c',
51 'Paso.c',
52 'solve.c',
53 'SystemMatrix_borrowNormalization.c',
54 'SystemMatrix.c',
55 'SystemMatrix_copy.c',
56 'SystemMatrix_getSubmatrix.c',
57 'SystemMatrix_getSystemMatrixTypeId.c',
58 'SystemMatrix_loadMM.c',
59 'SystemMatrix_MatrixVector.c',
60 'SystemMatrix_nullifyRowsAndCols.c',
61 'SystemMatrixPattern.c',
62 'SystemMatrixPattern_getSubpattern.c',
63 'SystemMatrixPattern_mis.c',
64 'SystemMatrixPattern_unrollBlocks.c',
65 'SystemMatrix_saveHB.c',
66 'SystemMatrix_saveMM.c',
67 'SystemMatrix_setValues.c',
68 'PasoUtil.c',
69 'MKL.c',
70 'SCSL.c',
71 'SCSL_direct.c',
72 'SCSL_iterative.c',
73 'Solvers/BiCGStab.c',
74 'Solvers/GMRES.c',
75 'Solvers/PCG.c',
76 'Solvers/Solver_applyBlockDiagonalMatrix.c',
77 'Solvers/Solver.c',
78 'Solvers/Solver_ILU.c',
79 'Solvers/Solver_RILU.c',
80 'Solvers/Solver_jacobi.c',
81 'Solvers/Solver_preconditioner.c',
82 'Solvers/Solver_SchurComplement.c']
83
84 paso_lib = paso_env.StaticLibrary(lib, sources)
85
86 Default(paso_env.Install(incdir, incs))
87 Default(paso_env.Install(incdir2, incs))
88 if incinstall != None:
89 Default(paso_env.Install(incinstall, incs))
90
91 Default(paso_env.Install(libdir, paso_lib))
92 Default(paso_env.Install(libdir2, paso_lib))
93 if libinstall != None:
94 Default(paso_env.Install(libinstall, paso_lib))

  ViewVC Help
Powered by ViewVC 1.1.26