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

Annotation of /trunk/paso/src/SConscript

Parent Directory Parent Directory | Revision Log Revision Log


Revision 466 - (hide annotations)
Wed Jan 25 01:25:18 2006 UTC (13 years, 7 months ago) by jgs
File size: 2311 byte(s)
remove redundant inc dir from paso src tree
1 jgs 192 libinstall = None
2    
3 jgs 187 Import('*')
4    
5     import os
6 jgs 190 import string
7 gross 425 paso_env = Environment(ENV = os.environ)
8 jgs 187
9 jgs 190 paso_path = str(esysroot) + '/paso/src'
10     solvers_path = str(esysroot) + '/paso/src/Solvers'
11     mmio_path = str(esysroot) + '/tools/mmio/inc'
12 jgs 187
13 jgs 190 cpp_path = [paso_path,
14     solvers_path,
15     mmio_path,
16     python_path,
17     boost_path]
18    
19 gross 425 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 jgs 187 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 gross 425 'MKL.c',
53 gross 411 'SCSL.c',
54     'SCSL_direct.c',
55     'SCSL_iterative.c',
56 jgs 187 '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 gross 430 'Solvers/Solver_RILU.c',
63 jgs 187 'Solvers/Solver_jacobi.c',
64     'Solvers/Solver_preconditioner.c',
65     'Solvers/Solver_SchurComplement.c']
66    
67     paso_lib = paso_env.StaticLibrary(lib, sources)
68 jgs 288
69 jgs 352 Default(paso_env.Install(libdir, paso_lib))
70     Default(paso_env.Install(libdir2, paso_lib))
71 jgs 192 if libinstall != None:
72 jgs 352 Default(paso_env.Install(libinstall, paso_lib))

  ViewVC Help
Powered by ViewVC 1.1.26