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

Annotation of /trunk/finley/src/SConscript

Parent Directory Parent Directory | Revision Log Revision Log


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

  ViewVC Help
Powered by ViewVC 1.1.26