/[escript]/trunk/modellib/test/python/run_flow.py
ViewVC logotype

Diff of /trunk/modellib/test/python/run_flow.py

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

revision 5287 by sshaw, Tue Jun 24 06:50:21 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) 2003-2014 by University of Queensland  # Copyright (c) 2003-2014 by University of Queensland
# Line 38  else: Line 38  else:
38  import esys.escriptcore.utestselect as unittest  import esys.escriptcore.utestselect as unittest
39  from esys.escriptcore.testing import *  from esys.escriptcore.testing import *
40  from esys.escript.modelframe import Link,Simulation  from esys.escript.modelframe import Link,Simulation
 from esys.modellib.geometry import RectangularDomain,VectorConstrainerOverBox  
41  from esys.modellib.input import Sequencer  from esys.modellib.input import Sequencer
42  from esys.modellib.probe import Probe,EvaluateExpression  from esys.modellib.probe import Probe,EvaluateExpression
43  from esys.modellib.flow import SteadyIncompressibleFlow  from esys.modellib.flow import SteadyIncompressibleFlow
44    
45    try:
46        import esys.finley
47        from esys.modellib.geometry import RectangularDomain,VectorConstrainerOverBox
48        HAVE_FINLEY = True
49    except ImportError:
50        HAVE_FINLEY = False
51    
52  #Link() behaves badly inside a TestCase class  #Link() behaves badly inside a TestCase class
53  def run(dom, stream):  def run(dom, stream):
54      constraints=VectorConstrainerOverBox()      constraints=VectorConstrainerOverBox()
# Line 87  class Test_RunFlow(unittest.TestCase): Line 93  class Test_RunFlow(unittest.TestCase):
93      def tearDown(self):      def tearDown(self):
94          import sys          import sys
95          sys.stdout = self.old          sys.stdout = self.old
96        
97        @unittest.skipIf(not HAVE_FINLEY, "Finley module not available")
98      def test_order2(self):      def test_order2(self):
99          dom=RectangularDomain()          dom=RectangularDomain()
100          dom.order=2          dom.order=2

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

  ViewVC Help
Powered by ViewVC 1.1.26