/[escript]/trunk/dudley/SConscript
ViewVC logotype

Contents of /trunk/dudley/SConscript

Parent Directory Parent Directory | Revision Log Revision Log


Revision 6174 - (show annotations)
Fri Apr 15 03:41:03 2016 UTC (2 years, 6 months ago) by caltinay
File size: 1048 byte(s)
Some reorganisation of EscriptParams and related changes.
We now distinguish between modifiable parameters and build features.
To interrogate the latter use:
escript::hasFeature()  [ python: escript.hasFeature() ]
and
escript::listFeatures() [ python: escript.listFeatures() ]

I have decided to add specific getters for the remaining few parameters to
avoid the penalty of string comparisons and to remove the wealth of friend
declarations with Data* classes.

Also made some changes in SConstruct to make sure we set *all* preprocessor
directives *before* building anything.

Still to do is dealing with checks for direct solver and gmsh. The latter needs
to be a runtime check rather than a compile time check.

1 ##############################################################################
2 #
3 # Copyright (c) 2003-2016 by The University of Queensland
4 # http://www.uq.edu.au
5 #
6 # Primary Business: Queensland, Australia
7 # Licensed under the Apache License, version 2.0
8 # http://www.apache.org/licenses/LICENSE-2.0
9 #
10 # Development until 2012 by Earth Systems Science Computational Center (ESSCC)
11 # Development 2012-2013 by School of Earth Sciences
12 # Development from 2014 by Centre for Geoscience Computing (GeoComp)
13 #
14 ##############################################################################
15
16 Import('env')
17 if 'dudley' in env['domains']:
18 if not env['paso'] and not env['trilinos']:
19 print("Dudley requires a solver library! Please either enable Paso or Trilinos.")
20 env.Exit(1)
21
22 # configure C++ library
23 env.SConscript('src/SConscript', duplicate=0)
24
25 # configure python module
26 env.SConscript('py_src/SConscript', variant_dir='py', duplicate=0)
27
28 # configure unit tests
29 env.SConscript('test/SConscript', duplicate=0)
30

  ViewVC Help
Powered by ViewVC 1.1.26