~ubuntu-branches/ubuntu/maverick/openturns/maverick

« back to all changes in this revision

Viewing changes to python/test/t_NumericalMathFunction_exec_threads.py

  • Committer: Bazaar Package Importer
  • Author(s): Fabrice Coutadeur
  • Date: 2010-05-10 17:27:55 UTC
  • mfrom: (1.1.4 upstream) (5.1.5 sid)
  • Revision ID: james.westby@ubuntu.com-20100510172755-cb5ynskknqqi5rhp
Tags: 0.13.2-2ubuntu1
* Merge with Debian testing. No changes left.
* ubuntu_fix-python-2.6.patch: fix detection of python 2.6 libs, to not use
  LOCALMODLIBS. This pulls a dependency on SSL and makes the package FTBFS.

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
TESTPREAMBLE()
6
6
 
7
7
try :
8
 
    # Instance creation 
 
8
    # Instance creation
9
9
    external = NumericalMathFunction("external_code_threads")
10
10
 
11
11
    size = 20
12
 
    dimension = external.getInputNumericalPointDimension()
 
12
    dimension = external.getInputDimension()
13
13
    sample = NumericalSample(size, dimension)
14
14
    for i in range(size):
15
15
        for j in range(dimension):
16
16
            sample[i][j] = float(i + j) / (size + dimension)
17
 
    print "external code(sample) = ", external(sample)
 
17
    print "external code(sample) = ", repr(external(sample))
18
18
 
19
19
except  :
20
20
    import sys