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

Annotation of /trunk/finley/src/SConscript

Parent Directory Parent Directory | Revision Log Revision Log


Revision 618 - (hide annotations)
Wed Mar 22 04:02:38 2006 UTC (13 years, 3 months ago) by gross
File size: 5034 byte(s)
mmio moced to paso
1 jgs 204 libinstall = None
2 jgs 481 incinstall = None
3 jgs 204
4 jgs 182 Import('*')
5    
6     import os
7 jgs 190 import string
8 jgs 182
9 jgs 277 libname = 'finleycpp'
10    
11 gross 584 finley_path = Dir(str(esysroot) + '/finley/src')
12     finley_cppadapter_path = Dir(str(esysroot) + '/finley/src/CPPAdapter')
13     paso_path = Dir(str(esysroot) + '/paso/src')
14     escript_path = Dir(str(esysroot) + '/escript/src')
15     esysUtils_path = Dir(str(esysroot) + '/esysUtils/src')
16 jgs 182
17 gross 584 esys_lib_path = Dir(str(esysroot) + '/lib')
18     esysUtils_lib_path = Dir(str(esysroot) + '/esysUtils/lib')
19 jgs 277
20     esysUtils_lib = str(esysUtils_lib_path) + '/libesysUtils.a'
21     escript_lib = str(esys_lib_path) + '/libescriptcpp.so'
22     paso_lib = str(esys_lib_path) + '/libpaso.a'
23    
24 jgs 204 cpp_path = [finley_path,
25     finley_cppadapter_path,
26     paso_path,
27     escript_path,
28 jgs 190 esysUtils_path,
29     python_path,
30 gross 584 papi_path,
31 jgs 190 boost_path]
32    
33 jgs 484 incs = ['Assemble.h',
34     'ElementFile.h',
35     'Finley.h',
36     'FinleyVersion.h',
37     'IndexList.h',
38     'Mesh.h',
39     'NodeFile.h',
40     'Quadrature.h',
41     'RectangularMesh.h',
42     'ReferenceElements.h',
43     'ShapeFunctions.h',
44     'Util.h',
45     # 'vtkCellType.h',
46     'CPPAdapter/FinleyAdapterException.h',
47     'CPPAdapter/FinleyError.h',
48     'CPPAdapter/MeshAdapterFactory.h',
49     'CPPAdapter/MeshAdapter.h',
50     'CPPAdapter/SystemMatrixAdapter.h']
51 jgs 481
52 jgs 182 sources = ['Assemble_addToSystemMatrix.c',
53     'Assemble_CopyElementData.c',
54     'Assemble_CopyNodalData.c',
55     'Assemble_getAssembleParameters.c',
56     'Assemble_getSize.c',
57     'Assemble_gradient.c',
58     'Assemble_handelShapeMissMatch.c',
59     'Assemble_integrate.c',
60     'Assemble_interpolate.c',
61     'Assemble_NodeCoordinates.c',
62     'Assemble_PDE.c',
63     'Assemble_PDEMatrix_Single2.c',
64     'Assemble_PDEMatrix_System2.c',
65     'Assemble_PDE_RHS.c',
66     'Assemble_RHSMatrix_Single.c',
67     'Assemble_RHSMatrix_System.c',
68     'Assemble_RobinCondition.c',
69     'Assemble_RobinCondition_RHS.c',
70     'Assemble_setNormal.c',
71     'ElementFile_allocTable.c',
72     'ElementFile.c',
73     'ElementFile_copyTable.c',
74     'ElementFile_gather.c',
75     'ElementFile_improveColoring.c',
76     'ElementFile_markNodes.c',
77     'ElementFile_optimizeDistribution.c',
78     'ElementFile_prepare.c',
79     'ElementFile_relableNodes.c',
80     'ElementFile_scatter.c',
81     'ElementFile_setNodeRange.c',
82 gross 532 'ElementFile_setCoordinates.c',
83 jgs 182 'Finley.c',
84     'IndexList.c',
85     'Mesh.c',
86     'Mesh_findMatchingFaces.c',
87     'Mesh_getPattern.c',
88     'Mesh_glueFaces.c',
89     'Mesh_hex20.c',
90     'Mesh_hex8.c',
91     'Mesh_joinFaces.c',
92     'Mesh_line2.c',
93     'Mesh_line3.c',
94     'Mesh_markNodes.c',
95     'Mesh_merge.c',
96     'Mesh_prepare.c',
97     'Mesh_prepareNodes.c',
98     'Mesh_print.c',
99     'Mesh_read.c',
100     'Mesh_rec4.c',
101     'Mesh_rec8.c',
102     'Mesh_relabelElementNodes.c',
103     'Mesh_resolveNodeIds.c',
104     'Mesh_saveDX.c',
105     'Mesh_saveVTK.c',
106     'Mesh_write.c',
107 gross 532 'Mesh_setCoordinates.c',
108 jgs 182 'NodeFile_allocTable.c',
109     'NodeFile.c',
110     'NodeFile_copyTable.c',
111     'NodeFile_gatter.c',
112     'NodeFile_scatter.c',
113     'NodeFile_setCoordinates.c',
114     'NodeFile_setIdRange.c',
115     'Quadrature.c',
116     'ReferenceElements.c',
117     'ShapeFunctions.c',
118 jgs 204 'Util.c',
119     'CPPAdapter/FinleyError.cpp',
120     'CPPAdapter/MeshAdapter.cpp',
121     'CPPAdapter/MeshAdapterFactory.cpp',
122     'CPPAdapter/SystemMatrixAdapter.cpp',
123     'CPPAdapter/finleycpp.cpp']
124 jgs 182
125 jgs 277 lib_path = [esys_lib_path,
126     esysUtils_lib_path,
127 gross 584 boost_lib_path,
128     papi_lib_path] \
129 gross 425 + solver_lib_paths
130 jgs 277
131     libs = ['escriptcpp',
132     'esysUtils',
133     'paso',
134     str(boost_lib),
135     'dl',
136 gross 425 'util'] \
137     + sys_libs \
138 gross 584 + solver_libs \
139     + papi_libs
140 jgs 277
141 jgs 204 finley_env = Environment(ENV = os.environ)
142 jgs 182
143 jgs 223 finley_env.Replace(CC = cc)
144     finley_env.Replace(CXX = cxx)
145 jgs 204 finley_env.Replace(CCFLAGS = cc_flags)
146     finley_env.Replace(CXXFLAGS = cxx_flags)
147     finley_env.Replace(SHOBJSUFFIX = '.lo')
148     finley_env.Replace(CPPPATH = cpp_path)
149 jgs 277 finley_env.Replace(LIBPATH = lib_path)
150     finley_env.Replace(LIBS = libs)
151 jgs 182
152 jgs 277 finley_lib = finley_env.SharedLibrary(libname, sources)
153    
154     Depends(finley_lib, esysUtils_lib)
155     Depends(finley_lib, escript_lib)
156     Depends(finley_lib, paso_lib)
157    
158 jgs 481 Default(finley_env.Install(incdir, incs))
159     Default(finley_env.Install(incdir2, incs))
160     if incinstall != None:
161     Default(finley_env.Install(incinstall, incs))
162    
163 jgs 352 Default(finley_env.Install(libdir, finley_lib))
164     Default(finley_env.Install(libdir2, finley_lib))
165 jgs 204 if libinstall != None:
166 jgs 352 Default(finley_env.Install(libinstall, finley_lib))

  ViewVC Help
Powered by ViewVC 1.1.26