/[escript]/trunk/finley/test/python/run_escriptOnFinley.py
ViewVC logotype

Annotation of /trunk/finley/test/python/run_escriptOnFinley.py

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1063 - (hide annotations)
Mon Mar 26 08:29:18 2007 UTC (14 years ago) by gross
File MIME type: text/x-python
File size: 1715 byte(s)
test for creation of reduced function spaces added.
tests for dumping data on reduced function spaces added.
This showed a small bug with compilation setting for compilation with netCDF which is fixed


1 gross 983 # $Id:$
2    
3     __copyright__=""" Copyright (c) 2006 by ACcESS MNRF
4     http://www.access.edu.au
5     Primary Business: Queensland, Australia"""
6     __license__="""Licensed under the Open Software License version 3.0
7     http://www.opensource.org/licenses/osl-3.0.php"""
8     import unittest
9     import tempfile
10    
11     from esys.escript import *
12     from esys.finley import Rectangle
13     import sys
14     import os
15     from test_objects import Test_Dump as Test_Dump
16 gross 1044 from test_objects import Test_Domain as Test_Domain
17 gross 983
18     try:
19     FINLEY_WORKDIR=os.environ['FINLEY_WORKDIR']
20     except KeyError:
21     FINLEY_WORKDIR='.'
22    
23     NE=4 # number elements, must be even
24 gross 1044 class Test_DomainOnFinley(Test_Domain):
25     def setUp(self):
26     self.domain =Rectangle(NE,NE+1,2)
27     def tearDown(self):
28     del self.domain
29 gross 983 class Test_DumpOnFinley(Test_Dump):
30     def setUp(self):
31     self.domain =Rectangle(NE,NE+1,2)
32     self.domain_with_different_number_of_samples =Rectangle(2*NE,NE+1,2)
33     self.domain_with_different_number_of_data_points_per_sample =Rectangle(2*NE,NE+1,2,integrationOrder=2)
34     self.domain_with_different_sample_ordering =Rectangle(1,(NE+1)*NE,2)
35     self.filebase=FINLEY_WORKDIR
36    
37     def tearDown(self):
38     del self.domain
39     del self.domain_with_different_number_of_samples
40     del self.domain_with_different_number_of_data_points_per_sample
41     del self.domain_with_different_sample_ordering
42    
43     if __name__ == '__main__':
44     suite = unittest.TestSuite()
45     suite.addTest(unittest.makeSuite(Test_DumpOnFinley))
46 gross 1044 suite.addTest(unittest.makeSuite(Test_DomainOnFinley))
47 gross 983 s=unittest.TextTestRunner(verbosity=2).run(suite)
48     if s.wasSuccessful():
49     sys.exit(0)
50     else:
51     sys.exit(1)
52    

  ViewVC Help
Powered by ViewVC 1.1.26