~chaffra/+junk/trilinos

« back to all changes in this revision

Viewing changes to packages/PyTrilinos/test/testEpetra_MultiVector.src

  • Committer: Bazaar Package Importer
  • Author(s): Christophe Prud'homme, Christophe Prud'homme, Johannes Ring
  • Date: 2009-12-13 12:53:22 UTC
  • mfrom: (5.1.2 sid)
  • Revision ID: james.westby@ubuntu.com-20091213125322-in0nrdjc55deqsw9
Tags: 10.0.3.dfsg-1
[Christophe Prud'homme]
* New upstream release

[Johannes Ring]
* debian/patches/libname.patch: Add prefix 'libtrilinos_' to all
  libraries. 
* debian/patches/soname.patch: Add soversion to libraries.
* debian/watch: Update download URL.
* debian/control:
  - Remove python-numeric from Build-Depends (virtual package).
  - Remove automake and autotools from Build-Depends and add cmake to
    reflect switch to CMake.
  - Add python-support to Build-Depends.
* debian/rules: 
  - Cleanup and updates for switch to CMake.

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
# ************************************************************************
30
30
# @HEADER
31
31
 
32
 
# Imports.  Users importing an installed version of PyTrilinos should use the
33
 
# "from PyTrilinos import ..." syntax.  Here, the setpath module adds the build
34
 
# directory, including "PyTrilinos", to the front of the search path.  We thus
35
 
# use "import ..." for Trilinos modules.  This prevents us from accidentally
36
 
# picking up a system-installed version and ensures that we are testing the
37
 
# build module.
 
32
#
 
33
# System imports
38
34
from   numpy    import *
39
35
from   optparse import *
40
36
import sys
41
37
import unittest
42
38
 
 
39
#
 
40
# Parse the command-line arguments
43
41
parser = OptionParser()
44
42
parser.add_option("-b", "--use-boost", action="store_true", dest="boost",
45
43
                  default=False,
50
48
parser.add_option("-v", "--verbosity", type="int", dest="verbosity", default=2,
51
49
                  help="set the verbosity level [default 2]")
52
50
options,args = parser.parse_args()
53
 
if options.testharness:
54
 
    import setpath
55
 
    if options.boost: setpath.setpath("src-boost")
56
 
    else:             setpath.setpath()
57
 
    import Epetra
58
 
else:
59
 
    try:
60
 
        import setpath
61
 
        if options.boost: setpath.setpath("src-boost")
62
 
        else:             setpath.setpath()
63
 
        import Epetra
64
 
    except ImportError:
65
 
        from PyTrilinos import Epetra
66
 
        print >>sys.stderr, "Using system-installed Epetra"
 
51
 
 
52
#
 
53
# Under normal usage, simply use 'from PyTrilinos import Epetra'.  For testing,
 
54
# we want to be able to control whether we import from the build directory or
 
55
# from a system-installed version of PyTrilinos.
 
56
from testutil import fromPyTrilinosImport
 
57
Epetra = fromPyTrilinosImport('Epetra', options.testharness)
67
58
 
68
59
##########################################################################
69
60