/[escript]/trunk/finley/test/python/run_models.py
ViewVC logotype

Diff of /trunk/finley/test/python/run_models.py

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

revision 5694 by jfenwick, Fri Apr 24 01:36:26 2015 UTC revision 5695 by sshaw, Fri Jun 26 03:28:21 2015 UTC
# Line 14  Line 14 
14  # Development from 2014 by Centre for Geoscience Computing (GeoComp)  # Development from 2014 by Centre for Geoscience Computing (GeoComp)
15  #  #
16  ##############################################################################  ##############################################################################
17    from __future__ import print_function, division
18    
19  __copyright__="""Copyright (c) 2003-2015 by The University of Queensland  __copyright__="""Copyright (c) 2003-2015 by The University of Queensland
20  http://www.uq.edu.au  http://www.uq.edu.au
# Line 25  __url__="https://launchpad.net/escript-f Line 26  __url__="https://launchpad.net/escript-f
26  import esys.escriptcore.utestselect as unittest  import esys.escriptcore.utestselect as unittest
27  from esys.escriptcore.testing import *  from esys.escriptcore.testing import *
28                
29    VERBOSE = False
   
 VERBOSE=False  and True  
30    
31  from esys.escript import *  from esys.escript import *
32  from esys.escript.models import StokesProblemCartesian, PowerLaw, IncompressibleIsotropicFlowCartesian, FaultSystem, DarcyFlow  from esys.escript.models import StokesProblemCartesian, PowerLaw, IncompressibleIsotropicFlowCartesian, FaultSystem
33  from esys.escript.models import Mountains  from esys.escript.models import Mountains
34  from esys.finley import Rectangle, Brick  from esys.finley import Rectangle, Brick
35    
36  from math import pi  from math import pi
37  import numpy  import numpy, os, sys, tempfile
 import sys  
 import os  
38  #======================================================================  #======================================================================
39  try:  try:
40       FINLEY_WORKDIR=os.environ['FINLEY_WORKDIR']       FINLEY_WORKDIR=os.environ['FINLEY_WORKDIR']
# Line 1459  class Test_FaultSystem(unittest.TestCase Line 1456  class Test_FaultSystem(unittest.TestCase
1456        s,d=f.getSideAndDistance([5.,12.,-4], tag=2)        s,d=f.getSideAndDistance([5.,12.,-4], tag=2)
1457        self.assertTrue( s<0, "wrong side.")        self.assertTrue( s<0, "wrong side.")
1458        self.assertTrue( abs(d-2.*0.70710678118654757)<self.EPS, "wrong distance.")        self.assertTrue( abs(d-2.*0.70710678118654757)<self.EPS, "wrong distance.")
1459    
1460  if __name__ == '__main__':  if __name__ == '__main__':
1461      run_tests(__name__, exit_on_failure=True)      run_tests(__name__, exit_on_failure=True)
1462    

Legend:
Removed from v.5694  
changed lines
  Added in v.5695

  ViewVC Help
Powered by ViewVC 1.1.26