/[escript]/trunk/doc/examples/cookbook/example06.py
ViewVC logotype

Diff of /trunk/doc/examples/cookbook/example06.py

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

revision 5774 by jfenwick, Fri Apr 24 01:36:26 2015 UTC revision 5775 by sshaw, Thu Jul 30 08:01:06 2015 UTC
# Line 1  Line 1 
 from __future__ import division, print_function  
1  ##############################################################################  ##############################################################################
2  #  #
3  # Copyright (c) 2009-2015 by The University of Queensland  # Copyright (c) 2009-2015 by The University of Queensland
# Line 14  from __future__ import division, print_f Line 13  from __future__ import division, print_f
13  #  #
14  ##############################################################################  ##############################################################################
15    
16    from __future__ import division, print_function
17  __copyright__="""Copyright (c) 2009-2015 by The University of Queensland  __copyright__="""Copyright (c) 2009-2015 by The University of Queensland
18  http://www.uq.edu.au  http://www.uq.edu.au
19  Primary Business: Queensland, Australia"""  Primary Business: Queensland, Australia"""
# Line 37  from esys.pycad.gmsh import Design Line 37  from esys.pycad.gmsh import Design
37  from esys.escript import *  from esys.escript import *
38  import numpy as np  import numpy as np
39  import pylab as pl #Plotting package  import pylab as pl #Plotting package
40  from cblib import toRegGrid, subsample  from cblib import toRegGrid, subsample, HAVE_NATGRID
41  from esys.escript.unitsSI import *  from esys.escript.unitsSI import *
42  from esys.escript.linearPDEs import LinearPDE  from esys.escript.linearPDEs import LinearPDE
43  import os, sys  import os, sys
# Line 55  if getMPISizeWorld() > 1: Line 55  if getMPISizeWorld() > 1:
55          print("This example will not run in an MPI world.")          print("This example will not run in an MPI world.")
56          sys.exit(0)          sys.exit(0)
57    
58  if HAVE_FINLEY:  if not HAVE_NATGRID:
59        print("This example requires that natgrid is available to matplotlib")
60    
61    if HAVE_FINLEY and HAVE_NATGRID:
62      #################################################ESTABLISHING VARIABLES      #################################################ESTABLISHING VARIABLES
63      # where to put output files      # where to put output files
64      save_path= os.path.join("data","example06")      save_path= os.path.join("data","example06")

Legend:
Removed from v.5774  
changed lines
  Added in v.5775

  ViewVC Help
Powered by ViewVC 1.1.26