/[escript]/trunk/escript/test/python/test_util_binary_no_tagged_data.py
ViewVC logotype

Diff of /trunk/escript/test/python/test_util_binary_no_tagged_data.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 785 by gross, Tue Jul 25 03:48:10 2006 UTC revision 1809 by ksteube, Thu Sep 25 06:43:44 2008 UTC
# Line 1  Line 1 
1  # $Id:$  
2    ########################################################
3    #
4    # Copyright (c) 2003-2008 by University of Queensland
5    # Earth Systems Science Computational Center (ESSCC)
6    # http://www.uq.edu.au/esscc
7    #
8    # Primary Business: Queensland, Australia
9    # Licensed under the Open Software License version 3.0
10    # http://www.opensource.org/licenses/osl-3.0.php
11    #
12    ########################################################
13    
14    __copyright__="""Copyright (c) 2003-2008 by University of Queensland
15    Earth Systems Science Computational Center (ESSCC)
16    http://www.uq.edu.au/esscc
17    Primary Business: Queensland, Australia"""
18    __license__="""Licensed under the Open Software License version 3.0
19    http://www.opensource.org/licenses/osl-3.0.php"""
20    __url__="http://www.uq.edu.au/esscc/escript-finley"
21    
22  """  """
23  test for unary operations without tagged data  test for unary operations without tagged data
24    
# Line 12  test for unary operations without tagged Line 32  test for unary operations without tagged
32  """  """
33    
34  __author__="Lutz Gross, l.gross@uq.edu.au"  __author__="Lutz Gross, l.gross@uq.edu.au"
 __copyright__="""  Copyright (c) 2006 by ACcESS MNRF  
                     http://www.access.edu.au  
                 Primary Business: Queensland, Australia"""  
 __license__="""Licensed under the Open Software License version 3.0  
              http://www.opensource.org/licenses/osl-3.0.php"""  
 __url__="http://www.iservo.edu.au/esys/escript"  
 __version__="$Revision:$"  
 __date__="$Date:$"  
35    
36  import unittest  import unittest
37  import numarray  import numarray
# Line 305  class Test_util_binary_no_tagged_data(Te Line 317  class Test_util_binary_no_tagged_data(Te
317        self.failUnlessEqual(res.shape,(2,),"wrong shape of result.")        self.failUnlessEqual(res.shape,(2,),"wrong shape of result.")
318        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
319     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
320     def test_add_array_rank0_array_rank1(self):     def test_AAAadd_array_rank0_array_rank1(self):
321        arg0=numarray.array(-4.19219670267)        arg0=numarray.array(-4.19219670267)
322        arg1=numarray.array([-1.4956124890848423, -1.9457489768254597])        arg1=numarray.array([-1.4956124890848423, -1.9457489768254597])
323        res=add(arg0,arg1)        res=add(arg0,arg1)

Legend:
Removed from v.785  
changed lines
  Added in v.1809

  ViewVC Help
Powered by ViewVC 1.1.26