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

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

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

revision 5287 by sshaw, Tue Jun 10 02:16:18 2014 UTC revision 5288 by sshaw, Tue Dec 2 23:18:40 2014 UTC
# Line 1  Line 1 
1    from __future__ import print_function
2  ##############################################################################  ##############################################################################
3  #  #
4  # Copyright (c) 2012-2014 by University of Queensland  # Copyright (c) 2012-2014 by University of Queensland
# Line 24  __url__="https://launchpad.net/escript-f Line 24  __url__="https://launchpad.net/escript-f
24  import esys.escriptcore.utestselect as unittest  import esys.escriptcore.utestselect as unittest
25  from esys.escriptcore.testing import *  from esys.escriptcore.testing import *
26  import sys  import sys
 import esys.ripley  
27  from esys.downunder import *  from esys.downunder import *
28  from esys.escript import *  from esys.escript import *
29  import numpy as np  import numpy as np
30    
31                    try:
32        import esys.ripley
33        HAVE_RIPLEY = True
34    except ImportError:
35        HAVE_RIPLEY = False
36    
37    @unittest.skipIf(not HAVE_RIPLEY, "Ripley module not available")
38  class Test_Regularizaton2D(unittest.TestCase):  class Test_Regularizaton2D(unittest.TestCase):
39      def setUp(self):      def setUp(self):
40          self.domain = esys.ripley.Rectangle(20*getMPISizeWorld()-1,20*getMPISizeWorld()-1, d0=getMPISizeWorld()) # expected dimension 1mx1m          self.domain = esys.ripley.Rectangle(20*getMPISizeWorld()-1,20*getMPISizeWorld()-1, d0=getMPISizeWorld()) # expected dimension 1mx1m

Legend:
Removed from v.5287  
changed lines
  Added in v.5288

  ViewVC Help
Powered by ViewVC 1.1.26