~ubuntu-branches/ubuntu/maverick/dolfin/maverick

« back to all changes in this revision

Viewing changes to bench/la/sparse-matrix/SConstruct

  • Committer: Bazaar Package Importer
  • Author(s): Johannes Ring
  • Date: 2009-10-12 14:13:18 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20091012141318-hkbxl0sq555vqv7d
Tags: 0.9.4-1
* New upstream release. This version cleans up the design of the
  function class by adding a new abstraction for user-defined
  functions called Expression. A number of minor bugfixes and
  improvements have also been made.
* debian/watch: Update for new flat directory structure.
* Update debian/copyright.
* debian/rules: Use explicit paths to PETSc 3.0.0 and SLEPc 3.0.0.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
import commands
 
1
import os, commands
2
2
 
3
3
# Get compiler from pkg-config
4
4
compiler = commands.getoutput('pkg-config --variable=compiler dolfin')
5
 
env      = Environment(CXX = compiler)
 
5
 
 
6
# Create a SCons Environment based on the main os environment
 
7
env = Environment(ENV=os.environ, CXX=compiler)
6
8
 
7
9
# Get compiler flags from pkg-config
8
10
env.ParseConfig('pkg-config --cflags --libs dolfin')