/[escript]/trunk/downunder/test/python/run_domainbuilder.py
ViewVC logotype

Diff of /trunk/downunder/test/python/run_domainbuilder.py

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

revision 4983 by jfenwick, Wed May 14 01:13:23 2014 UTC revision 4984 by sshaw, Mon Jun 2 02:50:34 2014 UTC
# Line 26  import numpy as np Line 26  import numpy as np
26  import os  import os
27  import sys  import sys
28  import esys.escriptcore.utestselect as unittest  import esys.escriptcore.utestselect as unittest
29    from esys.escriptcore.testing import *
30  from esys.escript import inf,sup,saveDataCSV,getMPISizeWorld  from esys.escript import inf,sup,saveDataCSV,getMPISizeWorld
31  from esys.downunder.datasources import *  from esys.downunder.datasources import *
32  from esys.downunder.domainbuilder import DomainBuilder  from esys.downunder.domainbuilder import DomainBuilder
# Line 108  class TestDomainBuilderWithNetCdf(unitte Line 109  class TestDomainBuilderWithNetCdf(unitte
109              self.assertAlmostEqual(sup(x[2]), 0.3, msg="h range wrong: "+str(x[2]))              self.assertAlmostEqual(sup(x[2]), 0.3, msg="h range wrong: "+str(x[2]))
110                    
111    
112  if __name__ == "__main__":  if __name__ == '__main__':
113      suite = unittest.TestSuite()      run_tests(__name__, exit_on_failure=True)
     suite.addTest(unittest.makeSuite(TestDomainBuilderWithNetCdf))  
     s=unittest.TextTestRunner(verbosity=2).run(suite)  
     if not s.wasSuccessful(): sys.exit(1)  
114    

Legend:
Removed from v.4983  
changed lines
  Added in v.4984

  ViewVC Help
Powered by ViewVC 1.1.26