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

Annotation of /trunk/finley/src/SConscript

Parent Directory Parent Directory | Revision Log Revision Log


Revision 6651 - (hide annotations)
Wed Feb 7 02:12:08 2018 UTC (20 months ago) by jfenwick
File size: 3275 byte(s)
Make everyone sad by touching all the files

Copyright dates update

1 ksteube 1811
2 jfenwick 3982 ##############################################################################
3 gross 707 #
4 jfenwick 6651 # Copyright (c) 2003-2018 by The University of Queensland
5 jfenwick 3982 # http://www.uq.edu.au
6 ksteube 1705 #
7 ksteube 1811 # Primary Business: Queensland, Australia
8 jfenwick 6112 # Licensed under the Apache License, version 2.0
9     # http://www.apache.org/licenses/LICENSE-2.0
10 ksteube 1705 #
11 jfenwick 3982 # Development until 2012 by Earth Systems Science Computational Center (ESSCC)
12 jfenwick 4657 # Development 2012-2013 by School of Earth Sciences
13     # Development from 2014 by Centre for Geoscience Computing (GeoComp)
14 jfenwick 3982 #
15     ##############################################################################
16 ksteube 1705
17 jgs 182 Import('*')
18    
19 caltinay 6119 module_name = 'finley'
20 ksteube 1705
21     sources = """
22 jfenwick 4346 Assemble_AverageElementData.cpp
23     Assemble_CopyElementData.cpp
24     Assemble_CopyNodalData.cpp
25     Assemble_LumpedSystem.cpp
26     Assemble_NodeCoordinates.cpp
27     Assemble_PDE.cpp
28     Assemble_PDE_Points.cpp
29 caltinay 4626 Assemble_PDE_Single_1D.cpp
30     Assemble_PDE_Single_2D.cpp
31     Assemble_PDE_Single_3D.cpp
32     Assemble_PDE_Single_C.cpp
33     Assemble_PDE_System_1D.cpp
34     Assemble_PDE_System_2D.cpp
35     Assemble_PDE_System_3D.cpp
36     Assemble_PDE_System_C.cpp
37 jfenwick 4346 Assemble_addToSystemMatrix.cpp
38     Assemble_getAssembleParameters.cpp
39 caltinay 4500 Assemble_getNormal.cpp
40 jfenwick 4346 Assemble_getSize.cpp
41     Assemble_gradient.cpp
42     Assemble_integrate.cpp
43     Assemble_interpolate.cpp
44 caltinay 4422 Assemble_jacobians.cpp
45 caltinay 6207 DomainFactory.cpp
46 jfenwick 4346 ElementFile.cpp
47 caltinay 4422 ElementFile_jacobians.cpp
48 caltinay 6207 FinleyDomain.cpp
49 jfenwick 4346 IndexList.cpp
50 caltinay 4496 Mesh_addPoints.cpp
51 jfenwick 4346 Mesh_findMatchingFaces.cpp
52 caltinay 6216 Mesh_getPasoPattern.cpp
53     Mesh_getTrilinosGraph.cpp
54 jfenwick 4346 Mesh_glueFaces.cpp
55     Mesh_hex20.cpp
56     Mesh_hex8.cpp
57     Mesh_joinFaces.cpp
58     Mesh_merge.cpp
59     Mesh_optimizeDOFDistribution.cpp
60     Mesh_read.cpp
61     Mesh_readGmsh.cpp
62     Mesh_rec4.cpp
63     Mesh_rec8.cpp
64     Mesh_write.cpp
65     NodeFile.cpp
66     Quadrature.cpp
67     ReferenceElements.cpp
68     ShapeFunctions.cpp
69     Util.cpp
70 ksteube 1705 """.split()
71 jfenwick 3259
72 ksteube 1705 headers = """
73 jfenwick 3259 Assemble.h
74 caltinay 6207 DomainFactory.h
75 jfenwick 3259 ElementFile.h
76     Finley.h
77 caltinay 6207 FinleyDomain.h
78 caltinay 5972 FinleyException.h
79 jfenwick 3259 FinleyVersion.h
80     IndexList.h
81     NodeFile.h
82     NodeMapping.h
83     Quadrature.h
84     ReferenceElements.h
85     ShapeFunctions.h
86     Util.h
87     ReferenceElementSets.h
88 ksteube 1705 """.split()
89 jfenwick 3259
90 caltinay 6119 local_env = env.Clone()
91 caltinay 3737
92 jfenwick 3259 if IS_WINDOWS:
93     local_env.Append(CPPDEFINES = ['FINLEY_EXPORTS'])
94 phornby 2027
95 caltinay 6119 # collect dependencies for other modules
96 caltinay 6175 finleylibs = []
97     finleylibs += env['escript_libs']
98 caltinay 6145 if env['parmetis']:
99     finleylibs += env['parmetis_libs']
100 caltinay 6119 if env['paso']:
101 caltinay 6145 finleylibs += env['paso_libs']
102 caltinay 6119 if env['trilinos']:
103     finleylibs += env['trilinoswrap_libs']
104 jgs 277
105 caltinay 6119 local_env.PrependUnique(LIBS = finleylibs)
106    
107     env['finley_libs'] = [module_name] + finleylibs
108    
109     include_path = Dir(module_name, local_env['incinstall'])
110     hdr_inst = local_env.Install(include_path, headers)
111 jgs 190
112 caltinay 6119 lib = local_env.SharedLibrary(module_name, sources)
113 jfenwick 3259 lib_inst = local_env.Install(local_env['libinstall'], lib)
114 gross 806
115 jfenwick 3259 ### Python wrapper ###
116 caltinay 6119 py_env = env.Clone()
117 caltinay 6148 py_env.PrependUnique(LIBS = env['finley_libs'])
118 caltinay 6119 py_lib_name = module_name + 'cpp'
119 caltinay 6207 py_lib = py_env.PythonModule(py_lib_name, 'finleycpp.cpp')
120 caltinay 3737
121 caltinay 6119 mod_path = Dir(module_name, local_env['pyinstall'])
122     mod_inst = py_env.Install(mod_path, py_lib)
123 jfenwick 3259
124 caltinay 6119 build = env.Alias('build_finley', [hdr_inst, lib, py_lib])
125     env.Alias('install_finley', [build, lib_inst, mod_inst])
126 phornby 1840

  ViewVC Help
Powered by ViewVC 1.1.26