/[escript]/branches/symbolic_from_3470/dudley/test/python/run_escriptOnDudley.py
ViewVC logotype

Annotation of /branches/symbolic_from_3470/dudley/test/python/run_escriptOnDudley.py

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1141 - (hide annotations)
Tue May 15 04:24:51 2007 UTC (12 years, 1 month ago) by gross
Original Path: trunk/finley/test/python/run_escriptOnFinley.py
File MIME type: text/x-python
File size: 1753 byte(s)
Some changes to make things run on windows. There is still a problem with netcdf an long file names on windows but there is the suspicion that this is a bigger problem related to boost (compiler options). In fact runs with large numbers of iteration/time steps tend to create seg faults. 
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 gross 1141 from test_objects import Test_Dump, Test_SetDataPointValue
16     from test_objects import 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 1141 class Test_DataOpsOnFinley(Test_Dump): # , Test_SetDataPointValue):
30 gross 983 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 gross 1141 self.filename_base=FINLEY_WORKDIR
36 gross 983
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 gross 1141 suite.addTest(unittest.makeSuite(Test_DataOpsOnFinley))
46     # 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