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

Annotation of /trunk/paso/src/SConscript

Parent Directory Parent Directory | Revision Log Revision Log


Revision 190 - (hide annotations)
Mon Nov 21 03:27:42 2005 UTC (13 years, 9 months ago) by jgs
File size: 2033 byte(s)
pass in value for esysroot and use this to determine include file locations
1 jgs 187 Import('*')
2    
3     import os
4 jgs 190 import string
5 jgs 187
6     cc_flags = '-O0 -openmp -openmp_report0 -tpp2 -c99 -ansi_alias -no-gcc -c -fpic -w1'
7    
8 jgs 190 paso_path = str(esysroot) + '/paso/src'
9     scsl_path = str(esysroot) + '/paso/src/SCSL'
10     solvers_path = str(esysroot) + '/paso/src/Solvers'
11     mmio_path = str(esysroot) + '/tools/mmio/inc'
12     python_path = '/raid2/tools/python-2.3.4/include/python2.3'
13     boost_path = '/raid2/tools/boost/include/boost-1_31'
14 jgs 187
15 jgs 190 cpp_path = [paso_path,
16     scsl_path,
17     solvers_path,
18     mmio_path,
19     python_path,
20     boost_path]
21    
22 jgs 187 lib = 'paso'
23     sources = ['Options_getPackage.c',
24     'Options_getSolver.c',
25     'Options_setDefaults.c',
26     'Paso.c',
27     'solve.c',
28     'SystemMatrix_borrowNormalization.c',
29     'SystemMatrix.c',
30     'SystemMatrix_copy.c',
31     'SystemMatrix_getSubmatrix.c',
32     'SystemMatrix_getSystemMatrixTypeId.c',
33     'SystemMatrix_loadMM.c',
34     'SystemMatrix_MatrixVector.c',
35     'SystemMatrix_nullifyRowsAndCols.c',
36     'SystemMatrixPattern.c',
37     'SystemMatrixPattern_getSubpattern.c',
38     'SystemMatrixPattern_mis.c',
39     'SystemMatrixPattern_unrollBlocks.c',
40     'SystemMatrix_saveHB.c',
41     'SystemMatrix_saveMM.c',
42     'SystemMatrix_setValues.c',
43     'Util.c',
44     'SCSL/SCSL.c',
45     'SCSL/SCSL_direct.c',
46     'SCSL/SCSL_iterative.c',
47     'Solvers/BiCGStab.c',
48     'Solvers/GMRES.c',
49     'Solvers/PCG.c',
50     'Solvers/Solver_applyBlockDiagonalMatrix.c',
51     'Solvers/Solver.c',
52     'Solvers/Solver_ILU.c',
53     'Solvers/Solver_jacobi.c',
54     'Solvers/Solver_preconditioner.c',
55     'Solvers/Solver_SchurComplement.c']
56    
57     paso_env = Environment(ENV = os.environ)
58    
59     paso_env.Replace(CC = 'icc')
60     paso_env.Replace(CCFLAGS = cc_flags)
61     paso_env.Replace(CPPPATH = cpp_path)
62    
63     paso_lib = paso_env.StaticLibrary(lib, sources)
64     paso_env.Install(libdir, paso_lib)

  ViewVC Help
Powered by ViewVC 1.1.26