/[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 1133 by gross, Tue May 8 07:19:33 2007 UTC revision 1913 by phornby, Thu Oct 23 08:27:33 2008 UTC
# Line 1  Line 1 
 import os  
 Import('*')  
1    
2  local_env=env.Copy()  ########################################################
3    #
4    # Copyright (c) 2003-2008 by University of Queensland
5    # Earth Systems Science Computational Center (ESSCC)
6    # http://www.uq.edu.au/esscc
7    #
8    # Primary Business: Queensland, Australia
9    # Licensed under the Open Software License version 3.0
10    # http://www.opensource.org/licenses/osl-3.0.php
11    #
12    ########################################################
13    
14    
15    import os
16    Import('*')
17    
18  # get the relevant file names:  local_env = clone_env(env_mpi)
 src_dir = local_env.Dir('.').srcnode().abspath  
 filenames = [ x for x in os.listdir(src_dir) if os.path.splitext(x)[1] in [".h", ".c", ".cpp"] ]  
   
 sources = [x for x in filenames if os.path.splitext(x)[1] in ['.cpp', '.c']]  
 headers = [x for x in filenames if os.path.splitext(x)[1] in ['.h']]  
   
 if mkl_libs:  
    local_env.Append(CPPDEFINES=['MKL',])  
    local_env.Append(LIBS = mkl_libs)  
 if scsl_libs:  
    local_env.Append(CPPDEFINES=['SCSL',])  
    local_env.Append(LIBS = scsl_libs)  
 if umf_libs:  
    local_env.Append(CPPDEFINES=['UMFPACK',])  
    local_env.Append(LIBS = umf_libs)  
 if papi_libs:  
    local_env.Append(CPPDEFINES=['PAPI',])  
    local_env.Append(LIBS = papi_libs)  
19    
20  lib_name = 'paso'  sources = """
21        BiCGStab.c
22        Coupler.c
23        Distribution.c
24        Functions.c
25        GMRES.c
26        GMRES2.c
27        MKL.c
28        NewtonGMRES.c
29        Options_getPackage.c
30        Options_getSolver.c
31        Options_setDefaults.c
32        PCG.c
33        Paso.c
34        PasoUtil.c
35        Paso_MPI.c
36        Pattern.c
37        Pattern_getSubpattern.c
38        Pattern_mis.c
39        Pattern_coupling.c
40        Pattern_reduceBandwidth.c
41        Pattern_unrollBlocks.c
42        SCSL.c
43        SCSL_direct.c
44        SCSL_iterative.c
45        SharedComponents.c
46        Solver.c
47        SolverFCT.c
48        SolverFCT_FluxControl.c
49        SolverFCT_reset.c
50        SolverFCT_solve.c
51        Solver_Function.c
52        Solver_GS.c
53        Solver_ILU.c
54        Solver_RILU.c
55        Solver_AMG.c
56        Solver_SchurComplement.c
57        Solver_applyBlockDiagonalMatrix.c
58        Solver_jacobi.c
59        Solver_preconditioner.c
60        SparseMatrix.c
61        SparseMatrix_MatrixVector.c
62        SparseMatrix_addAbsRow.c
63        SparseMatrix_addRow.c
64        SparseMatrix_getSubmatrix.c
65        SparseMatrix_nullifyRowsAndCols.c
66        SparseMatrix_saveHB.c
67        SparseMatrix_setValues.c
68        SystemMatrix.c
69        SystemMatrixPattern.c
70        SystemMatrixPattern_unrollBlocks.c
71        SystemMatrix_MatrixVector.c
72        SystemMatrix_borrowNormalization.c
73        SystemMatrix_getSystemMatrixTypeId.c
74        SystemMatrix_loadMM.c
75        SystemMatrix_nullifyRows.c
76        SystemMatrix_nullifyRowsAndCols.c
77        SystemMatrix_rowSum.c
78        SystemMatrix_saveHB.c
79        SystemMatrix_saveMM.c
80        SystemMatrix_setValues.c
81        TFQMR.c
82        MINRES.c
83        UMFPACK.c
84        mmio.c
85        performance.c
86        solve.c
87    """.split()
88    headers = """
89        Common.h
90        Coupler.h
91        Distribution.h
92        Functions.h
93        MKL.h
94        Options.h
95        Paso.h
96        PasoUtil.h
97        Paso_MPI.h
98        Pattern.h
99        Pattern_coupling.h
100        SCSL.h
101        SharedComponents.h
102        Solver.h
103        SolverFCT.h
104        SparseMatrix.h
105        SystemMatrix.h
106        SystemMatrixPattern.h
107        UMFPACK.h
108        mmio.h
109        mpi_C.h
110        performance.h
111    """.split()
112    
113  lib = local_env.StaticLibrary(lib_name, sources)  lib = local_env.StaticLibrary('paso', sources)
114    env.Alias('target_paso_a', lib)
115    
116  include_path = Dir(lib_name, incinstall)  include_path = Dir('paso', local_env['incinstall'])
117  solvers_include_path = Dir('Solvers', include_path)  solvers_include_path = Dir('Solvers', include_path)
118    
119  local_env.Install(include_path, headers )  tmp1 = local_env.Install(include_path, headers )
120  local_env.Install(libinstall, lib)  env.Alias('target_install_paso_headers', [tmp1])
121    
122    tmp2 = local_env.Install(local_env['libinstall'], lib)
123    env.Alias('target_install_paso_a', [tmp2])
124    
 release_srcfiles = [ env.File(x) for x in filenames ]  + [env.File("SConscript"), ]  
 env.Zip(src_zipfile, release_srcfiles)  
 try:  
   env.Tar(src_tarfile, release_srcfiles)  
 except AttributeError:  
   pass  

Legend:
Removed from v.1133  
changed lines
  Added in v.1913

  ViewVC Help
Powered by ViewVC 1.1.26