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

Contents of /trunk/paso/src/SConscript

Parent Directory Parent Directory | Revision Log Revision Log


Revision 430 - (show annotations)
Wed Jan 11 06:40:50 2006 UTC (13 years, 4 months ago) by gross
File size: 2313 byte(s)
ILU has been replicated is called RILU (recursive ILU) now. ILU will now be reimplemented.
1 libinstall = None
2
3 Import('*')
4
5 import os
6 import string
7 paso_env = Environment(ENV = os.environ)
8
9 paso_path = str(esysroot) + '/paso/src'
10 solvers_path = str(esysroot) + '/paso/src/Solvers'
11 mmio_path = str(esysroot) + '/tools/mmio/inc'
12
13 cpp_path = [paso_path,
14 solvers_path,
15 mmio_path,
16 python_path,
17 boost_path]
18
19 paso_env.Replace(CC = cc)
20 paso_env.Replace(CCFLAGS = cc_flags)
21 if len(mkl_libs) >0: paso_env.Append(CCFLAGS=' -DMKL')
22 if len(mkl_path) >0: cpp_path.append(mkl_path)
23 if len(scsl_libs)>0 : paso_env.Append(CCFLAGS=' -DSCSL')
24 if len(scsl_path)>0: cpp_path.append(scsl_path)
25 if len(umfpack_libs)>0 : paso_env.Append(CCFLAGS=' -DUMFPACK')
26 if len(umfpack_path)>0: cpp_path.append(umfpack_path)
27 paso_env.Replace(CPPPATH = cpp_path)
28 paso_env.Replace(ARFLAGS = ar_flags)
29
30 lib = 'paso'
31 sources = ['Options_getPackage.c',
32 'Options_getSolver.c',
33 'Options_setDefaults.c',
34 'Paso.c',
35 'solve.c',
36 'SystemMatrix_borrowNormalization.c',
37 'SystemMatrix.c',
38 'SystemMatrix_copy.c',
39 'SystemMatrix_getSubmatrix.c',
40 'SystemMatrix_getSystemMatrixTypeId.c',
41 'SystemMatrix_loadMM.c',
42 'SystemMatrix_MatrixVector.c',
43 'SystemMatrix_nullifyRowsAndCols.c',
44 'SystemMatrixPattern.c',
45 'SystemMatrixPattern_getSubpattern.c',
46 'SystemMatrixPattern_mis.c',
47 'SystemMatrixPattern_unrollBlocks.c',
48 'SystemMatrix_saveHB.c',
49 'SystemMatrix_saveMM.c',
50 'SystemMatrix_setValues.c',
51 'Util.c',
52 'MKL.c',
53 'SCSL.c',
54 'SCSL_direct.c',
55 'SCSL_iterative.c',
56 'Solvers/BiCGStab.c',
57 'Solvers/GMRES.c',
58 'Solvers/PCG.c',
59 'Solvers/Solver_applyBlockDiagonalMatrix.c',
60 'Solvers/Solver.c',
61 'Solvers/Solver_ILU.c',
62 'Solvers/Solver_RILU.c',
63 'Solvers/Solver_jacobi.c',
64 'Solvers/Solver_preconditioner.c',
65 'Solvers/Solver_SchurComplement.c']
66
67
68
69 paso_lib = paso_env.StaticLibrary(lib, sources)
70
71 Default(paso_env.Install(libdir, paso_lib))
72 Default(paso_env.Install(libdir2, paso_lib))
73 if libinstall != None:
74 Default(paso_env.Install(libinstall, paso_lib))

  ViewVC Help
Powered by ViewVC 1.1.26