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

Contents of /trunk/finley/src/SConscript

Parent Directory Parent Directory | Revision Log Revision Log


Revision 618 - (show annotations)
Wed Mar 22 04:02:38 2006 UTC (13 years, 7 months ago) by gross
File size: 5034 byte(s)
mmio moced to paso
1 libinstall = None
2 incinstall = None
3
4 Import('*')
5
6 import os
7 import string
8
9 libname = 'finleycpp'
10
11 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
17 esys_lib_path = Dir(str(esysroot) + '/lib')
18 esysUtils_lib_path = Dir(str(esysroot) + '/esysUtils/lib')
19
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 cpp_path = [finley_path,
25 finley_cppadapter_path,
26 paso_path,
27 escript_path,
28 esysUtils_path,
29 python_path,
30 papi_path,
31 boost_path]
32
33 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
52 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 'ElementFile_setCoordinates.c',
83 '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 'Mesh_setCoordinates.c',
108 '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 'Util.c',
119 'CPPAdapter/FinleyError.cpp',
120 'CPPAdapter/MeshAdapter.cpp',
121 'CPPAdapter/MeshAdapterFactory.cpp',
122 'CPPAdapter/SystemMatrixAdapter.cpp',
123 'CPPAdapter/finleycpp.cpp']
124
125 lib_path = [esys_lib_path,
126 esysUtils_lib_path,
127 boost_lib_path,
128 papi_lib_path] \
129 + solver_lib_paths
130
131 libs = ['escriptcpp',
132 'esysUtils',
133 'paso',
134 str(boost_lib),
135 'dl',
136 'util'] \
137 + sys_libs \
138 + solver_libs \
139 + papi_libs
140
141 finley_env = Environment(ENV = os.environ)
142
143 finley_env.Replace(CC = cc)
144 finley_env.Replace(CXX = cxx)
145 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 finley_env.Replace(LIBPATH = lib_path)
150 finley_env.Replace(LIBS = libs)
151
152 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 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 Default(finley_env.Install(libdir, finley_lib))
164 Default(finley_env.Install(libdir2, finley_lib))
165 if libinstall != None:
166 Default(finley_env.Install(libinstall, finley_lib))

  ViewVC Help
Powered by ViewVC 1.1.26