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

Annotation of /trunk/paso/src/SConscript

Parent Directory Parent Directory | Revision Log Revision Log


Revision 584 - (hide annotations)
Thu Mar 9 23:03:38 2006 UTC (13 years, 11 months ago) by gross
File size: 2862 byte(s)
eigenvalues: compiles and passes tests on altix now
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     'MKL.h',
38     'Options.h',
39     'Paso.h',
40     'SCSL.h',
41     'SystemMatrix.h',
42     'SystemMatrixPattern.h',
43     'PasoUtil.h',
44 gross 495 'performance.h',
45 jgs 483 'Solvers/Solver.h']
46 jgs 481
47 jgs 187 sources = ['Options_getPackage.c',
48     'Options_getSolver.c',
49     'Options_setDefaults.c',
50 gross 495 'performance.c',
51 jgs 187 '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 jgs 483 'PasoUtil.c',
69 gross 425 'MKL.c',
70 gross 411 'SCSL.c',
71     'SCSL_direct.c',
72     'SCSL_iterative.c',
73 jgs 187 '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 gross 430 'Solvers/Solver_RILU.c',
80 jgs 187 'Solvers/Solver_jacobi.c',
81     'Solvers/Solver_preconditioner.c',
82     'Solvers/Solver_SchurComplement.c']
83    
84     paso_lib = paso_env.StaticLibrary(lib, sources)
85 jgs 288
86 jgs 481 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 jgs 352 Default(paso_env.Install(libdir, paso_lib))
92     Default(paso_env.Install(libdir2, paso_lib))
93 jgs 192 if libinstall != None:
94 jgs 352 Default(paso_env.Install(libinstall, paso_lib))

  ViewVC Help
Powered by ViewVC 1.1.26