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

Annotation of /trunk/paso/src/SConscript

Parent Directory Parent Directory | Revision Log Revision Log


Revision 187 - (hide annotations)
Mon Nov 21 01:15:26 2005 UTC (14 years, 3 months ago) by jgs
File size: 1822 byte(s)
added first draft of scons construct/config scripts for paso library

1 jgs 187 Import('*')
2    
3     import os
4    
5     cc_flags = '-O0 -openmp -openmp_report0 -tpp2 -c99 -ansi_alias -no-gcc -c -fpic -w1'
6    
7     cpp_path = ['#../paso/src',
8     '#../paso/src/SCSL',
9     '#../paso/src/Solvers',
10     '#../tools/mmio/inc',
11     '/raid2/tools/python-2.3.4/include/python2.3',
12     '/raid2/tools/boost/include/boost-1_31']
13    
14     lib = 'paso'
15     sources = ['Options_getPackage.c',
16     'Options_getSolver.c',
17     'Options_setDefaults.c',
18     'Paso.c',
19     'solve.c',
20     'SystemMatrix_borrowNormalization.c',
21     'SystemMatrix.c',
22     'SystemMatrix_copy.c',
23     'SystemMatrix_getSubmatrix.c',
24     'SystemMatrix_getSystemMatrixTypeId.c',
25     'SystemMatrix_loadMM.c',
26     'SystemMatrix_MatrixVector.c',
27     'SystemMatrix_nullifyRowsAndCols.c',
28     'SystemMatrixPattern.c',
29     'SystemMatrixPattern_getSubpattern.c',
30     'SystemMatrixPattern_mis.c',
31     'SystemMatrixPattern_unrollBlocks.c',
32     'SystemMatrix_saveHB.c',
33     'SystemMatrix_saveMM.c',
34     'SystemMatrix_setValues.c',
35     'Util.c',
36     'SCSL/SCSL.c',
37     'SCSL/SCSL_direct.c',
38     'SCSL/SCSL_iterative.c',
39     'Solvers/BiCGStab.c',
40     'Solvers/GMRES.c',
41     'Solvers/PCG.c',
42     'Solvers/Solver_applyBlockDiagonalMatrix.c',
43     'Solvers/Solver.c',
44     'Solvers/Solver_ILU.c',
45     'Solvers/Solver_jacobi.c',
46     'Solvers/Solver_preconditioner.c',
47     'Solvers/Solver_SchurComplement.c']
48    
49     paso_env = Environment(ENV = os.environ)
50    
51     paso_env.Replace(CC = 'icc')
52     paso_env.Replace(CCFLAGS = cc_flags)
53     paso_env.Replace(CPPPATH = cpp_path)
54    
55     paso_lib = paso_env.StaticLibrary(lib, sources)
56     paso_env.Install(libdir, paso_lib)

  ViewVC Help
Powered by ViewVC 1.1.26