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

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

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

revision 4983 by gross, Mon Jun 2 00:26:35 2014 UTC revision 4984 by sshaw, Mon Jun 2 02:50:34 2014 UTC
# Line 23  __url__="https://launchpad.net/escript-f Line 23  __url__="https://launchpad.net/escript-f
23    
24  import logging  import logging
25  import esys.escriptcore.utestselect as unittest  import esys.escriptcore.utestselect as unittest
26    from esys.escriptcore.testing import *
27  import numpy as np  import numpy as np
28  import os  import os
29  import sys  import sys
# Line 366  class TestMT2DModelTEMode(unittest.TestC Line 367  class TestMT2DModelTEMode(unittest.TestC
367          self.assertTrue( abs( d1-d0-integrate(dg0*p) ) < 1e-2  * abs(d1-d0) )          self.assertTrue( abs( d1-d0-integrate(dg0*p) ) < 1e-2  * abs(d1-d0) )
368                    
369                                                                        
370  if __name__ == "__main__":  if __name__ == '__main__':
371      suite = unittest.TestSuite()      run_tests(__name__, exit_on_failure=True)
     suite.addTest(unittest.makeSuite(TestAcousticInversion))  
     suite.addTest(unittest.makeSuite(TestMT2DModelTEMode))  
     s=unittest.TextTestRunner(verbosity=2).run(suite)  
     if not s.wasSuccessful(): sys.exit(1)  
372            

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

  ViewVC Help
Powered by ViewVC 1.1.26