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

Annotation of /trunk/paso/src/SConscript

Parent Directory Parent Directory | Revision Log Revision Log


Revision 618 - (hide annotations)
Wed Mar 22 04:02:38 2006 UTC (13 years, 3 months ago) by gross
File size: 2901 byte(s)
mmio moced to paso
1 jgs 192 libinstall = None
2 jgs 481 incinstall = None
3 jgs 192
4 jgs 187 Import('*')
5    
6     import os
7 jgs 190 import string
8 gross 425 paso_env = Environment(ENV = os.environ)
9 jgs 187
10 gross 584 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 jgs 187
14 jgs 190 cpp_path = [paso_path,
15     solvers_path,
16     mmio_path,
17     python_path,
18     boost_path]
19    
20 gross 425 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 gross 584 if len(mkl_path)>0: cpp_path.append(mkl_path)
25 gross 425 if len(scsl_path)>0: cpp_path.append(scsl_path)
26 gross 584 if len(umfpack_path)>0: cpp_path.append(umfpack_path)
27     if len(papi_path)>0: cpp_path.append(papi_path)
28 gross 425 if len(umfpack_libs)>0 : paso_env.Append(CCFLAGS=' -DUMFPACK')
29 gross 584 if len(papi_libs)>0 : paso_env.Append(CCFLAGS=' -DPAPI')
30    
31 gross 425 paso_env.Replace(CPPPATH = cpp_path)
32     paso_env.Replace(ARFLAGS = ar_flags)
33    
34 jgs 187 lib = 'paso'
35 jgs 481
36 jgs 483 incs = ['Common.h',
37 gross 618 'mmio.h',
38 jgs 483 'MKL.h',
39     'Options.h',
40     'Paso.h',
41     'SCSL.h',
42     'SystemMatrix.h',
43     'SystemMatrixPattern.h',
44     'PasoUtil.h',
45 gross 495 'performance.h',
46 jgs 483 'Solvers/Solver.h']
47 jgs 481
48 jgs 187 sources = ['Options_getPackage.c',
49     'Options_getSolver.c',
50     'Options_setDefaults.c',
51 gross 618 'mmio.c',
52 gross 495 'performance.c',
53 jgs 187 'Paso.c',
54     'solve.c',
55     'SystemMatrix_borrowNormalization.c',
56     'SystemMatrix.c',
57     'SystemMatrix_copy.c',
58     'SystemMatrix_getSubmatrix.c',
59     'SystemMatrix_getSystemMatrixTypeId.c',
60     'SystemMatrix_loadMM.c',
61     'SystemMatrix_MatrixVector.c',
62     'SystemMatrix_nullifyRowsAndCols.c',
63     'SystemMatrixPattern.c',
64     'SystemMatrixPattern_getSubpattern.c',
65     'SystemMatrixPattern_mis.c',
66     'SystemMatrixPattern_unrollBlocks.c',
67     'SystemMatrix_saveHB.c',
68     'SystemMatrix_saveMM.c',
69     'SystemMatrix_setValues.c',
70 jgs 483 'PasoUtil.c',
71 gross 425 'MKL.c',
72 gross 411 'SCSL.c',
73     'SCSL_direct.c',
74     'SCSL_iterative.c',
75 jgs 187 'Solvers/BiCGStab.c',
76     'Solvers/GMRES.c',
77     'Solvers/PCG.c',
78     'Solvers/Solver_applyBlockDiagonalMatrix.c',
79     'Solvers/Solver.c',
80     'Solvers/Solver_ILU.c',
81 gross 430 'Solvers/Solver_RILU.c',
82 jgs 187 'Solvers/Solver_jacobi.c',
83     'Solvers/Solver_preconditioner.c',
84     'Solvers/Solver_SchurComplement.c']
85    
86     paso_lib = paso_env.StaticLibrary(lib, sources)
87 jgs 288
88 jgs 481 Default(paso_env.Install(incdir, incs))
89     Default(paso_env.Install(incdir2, incs))
90     if incinstall != None:
91     Default(paso_env.Install(incinstall, incs))
92    
93 jgs 352 Default(paso_env.Install(libdir, paso_lib))
94     Default(paso_env.Install(libdir2, paso_lib))
95 jgs 192 if libinstall != None:
96 jgs 352 Default(paso_env.Install(libinstall, paso_lib))

  ViewVC Help
Powered by ViewVC 1.1.26