/[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 481 by jgs, Wed Feb 1 05:57:50 2006 UTC revision 584 by gross, Thu Mar 9 23:03:38 2006 UTC
# Line 7  import os Line 7  import os
7  import string  import string
8  paso_env = Environment(ENV = os.environ)  paso_env = Environment(ENV = os.environ)
9    
10  paso_path = str(esysroot) + '/paso/src'  paso_path = Dir(str(esysroot) + '/paso/src')
11  solvers_path = str(esysroot) + '/paso/src/Solvers'  solvers_path = Dir(str(esysroot) + '/paso/src/Solvers')
12  mmio_path = str(esysroot) + '/tools/mmio/inc'  mmio_path = Dir(str(esysroot) + '/tools/mmio/inc')
13    
14  cpp_path = [paso_path,  cpp_path = [paso_path,
15              solvers_path,              solvers_path,
# Line 20  cpp_path = [paso_path, Line 20  cpp_path = [paso_path,
20  paso_env.Replace(CC = cc)  paso_env.Replace(CC = cc)
21  paso_env.Replace(CCFLAGS = cc_flags)  paso_env.Replace(CCFLAGS = cc_flags)
22  if len(mkl_libs) >0: paso_env.Append(CCFLAGS=' -DMKL')  if len(mkl_libs) >0: paso_env.Append(CCFLAGS=' -DMKL')
 if len(mkl_path) >0: cpp_path.append(mkl_path)  
23  if len(scsl_libs)>0 : paso_env.Append(CCFLAGS=' -DSCSL')  if len(scsl_libs)>0 : paso_env.Append(CCFLAGS=' -DSCSL')
24    if len(mkl_path)>0: cpp_path.append(mkl_path)
25  if len(scsl_path)>0: cpp_path.append(scsl_path)  if len(scsl_path)>0: cpp_path.append(scsl_path)
 if len(umfpack_libs)>0 : paso_env.Append(CCFLAGS=' -DUMFPACK')  
26  if len(umfpack_path)>0: cpp_path.append(umfpack_path)  if len(umfpack_path)>0: cpp_path.append(umfpack_path)
27    if len(papi_path)>0: cpp_path.append(papi_path)
28    if len(umfpack_libs)>0 : paso_env.Append(CCFLAGS=' -DUMFPACK')
29    if len(papi_libs)>0 : paso_env.Append(CCFLAGS=' -DPAPI')
30    
31  paso_env.Replace(CPPPATH = cpp_path)  paso_env.Replace(CPPPATH = cpp_path)
32  paso_env.Replace(ARFLAGS = ar_flags)  paso_env.Replace(ARFLAGS = ar_flags)
33    
34  lib = 'paso'  lib = 'paso'
35    
36  incs = ['Paso.h']  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            'performance.h',
45            'Solvers/Solver.h']
46    
47  sources = ['Options_getPackage.c',  sources = ['Options_getPackage.c',
48             'Options_getSolver.c',             'Options_getSolver.c',
49             'Options_setDefaults.c',             'Options_setDefaults.c',
50               'performance.c',
51             'Paso.c',             'Paso.c',
52             'solve.c',             'solve.c',
53             'SystemMatrix_borrowNormalization.c',             'SystemMatrix_borrowNormalization.c',
# Line 52  sources = ['Options_getPackage.c', Line 65  sources = ['Options_getPackage.c',
65             'SystemMatrix_saveHB.c',             'SystemMatrix_saveHB.c',
66             'SystemMatrix_saveMM.c',             'SystemMatrix_saveMM.c',
67             'SystemMatrix_setValues.c',             'SystemMatrix_setValues.c',
68             'Util.c',             'PasoUtil.c',
69             'MKL.c',             'MKL.c',
70             'SCSL.c',             'SCSL.c',
71             'SCSL_direct.c',             'SCSL_direct.c',

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

  ViewVC Help
Powered by ViewVC 1.1.26