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

Diff of /trunk/paso/src/SConscript

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 187 by jgs, Mon Nov 21 01:15:26 2005 UTC revision 481 by jgs, Wed Feb 1 05:57:50 2006 UTC
# Line 1  Line 1 
1    libinstall = None
2    incinstall = None
3    
4  Import('*')  Import('*')
5    
6  import os  import os
7    import string
8    paso_env = Environment(ENV = os.environ)
9    
10  cc_flags = '-O0 -openmp -openmp_report0 -tpp2 -c99 -ansi_alias -no-gcc -c -fpic -w1'  paso_path = str(esysroot) + '/paso/src'
11    solvers_path = str(esysroot) + '/paso/src/Solvers'
12    mmio_path = str(esysroot) + '/tools/mmio/inc'
13    
14    cpp_path = [paso_path,
15                solvers_path,
16                mmio_path,
17                python_path,
18                boost_path]
19    
20  cpp_path = ['#../paso/src',  paso_env.Replace(CC = cc)
21              '#../paso/src/SCSL',  paso_env.Replace(CCFLAGS = cc_flags)
22              '#../paso/src/Solvers',  if len(mkl_libs) >0: paso_env.Append(CCFLAGS=' -DMKL')
23              '#../tools/mmio/inc',  if len(mkl_path) >0: cpp_path.append(mkl_path)
24              '/raid2/tools/python-2.3.4/include/python2.3',  if len(scsl_libs)>0 : paso_env.Append(CCFLAGS=' -DSCSL')
25              '/raid2/tools/boost/include/boost-1_31']  if len(scsl_path)>0: cpp_path.append(scsl_path)
26    if len(umfpack_libs)>0 : paso_env.Append(CCFLAGS=' -DUMFPACK')
27    if len(umfpack_path)>0: cpp_path.append(umfpack_path)
28    paso_env.Replace(CPPPATH = cpp_path)
29    paso_env.Replace(ARFLAGS = ar_flags)
30    
31  lib = 'paso'  lib = 'paso'
32    
33    incs = ['Paso.h']
34    
35  sources = ['Options_getPackage.c',  sources = ['Options_getPackage.c',
36             'Options_getSolver.c',             'Options_getSolver.c',
37             'Options_setDefaults.c',             'Options_setDefaults.c',
# Line 33  sources = ['Options_getPackage.c', Line 53  sources = ['Options_getPackage.c',
53             'SystemMatrix_saveMM.c',             'SystemMatrix_saveMM.c',
54             'SystemMatrix_setValues.c',             'SystemMatrix_setValues.c',
55             'Util.c',             'Util.c',
56             'SCSL/SCSL.c',             'MKL.c',
57             'SCSL/SCSL_direct.c',             'SCSL.c',
58             'SCSL/SCSL_iterative.c',             'SCSL_direct.c',
59               'SCSL_iterative.c',
60             'Solvers/BiCGStab.c',             'Solvers/BiCGStab.c',
61             'Solvers/GMRES.c',             'Solvers/GMRES.c',
62             'Solvers/PCG.c',             'Solvers/PCG.c',
63             'Solvers/Solver_applyBlockDiagonalMatrix.c',             'Solvers/Solver_applyBlockDiagonalMatrix.c',
64             'Solvers/Solver.c',             'Solvers/Solver.c',
65             'Solvers/Solver_ILU.c',             'Solvers/Solver_ILU.c',
66               'Solvers/Solver_RILU.c',
67             'Solvers/Solver_jacobi.c',             'Solvers/Solver_jacobi.c',
68             'Solvers/Solver_preconditioner.c',             'Solvers/Solver_preconditioner.c',
69             'Solvers/Solver_SchurComplement.c']             'Solvers/Solver_SchurComplement.c']
70    
 paso_env = Environment(ENV = os.environ)  
   
 paso_env.Replace(CC = 'icc')  
 paso_env.Replace(CCFLAGS = cc_flags)  
 paso_env.Replace(CPPPATH = cpp_path)  
   
71  paso_lib = paso_env.StaticLibrary(lib, sources)  paso_lib = paso_env.StaticLibrary(lib, sources)
72  paso_env.Install(libdir, paso_lib)  
73    Default(paso_env.Install(incdir, incs))
74    Default(paso_env.Install(incdir2, incs))
75    if incinstall != None:
76      Default(paso_env.Install(incinstall, incs))
77    
78    Default(paso_env.Install(libdir, paso_lib))
79    Default(paso_env.Install(libdir2, paso_lib))
80    if libinstall != None:
81      Default(paso_env.Install(libinstall, paso_lib))

Legend:
Removed from v.187  
changed lines
  Added in v.481

  ViewVC Help
Powered by ViewVC 1.1.26