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

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

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

revision 2666 by ahallam, Thu Sep 10 02:58:44 2009 UTC revision 2667 by jfenwick, Thu Sep 17 01:49:11 2009 UTC
# Line 1  Line 1 
1    
2  ########################################################  ########################################################
3  #  #
4  # Copyright (c) 2003-2009 by University of Queensland  # Copyright (c) 2009 by University of Queensland
5  # Earth Systems Science Computational Center (ESSCC)  # Earth Systems Science Computational Center (ESSCC)
6  # http://www.uq.edu.au/esscc  # http://www.uq.edu.au/esscc
7  #  #
# Line 11  Line 11 
11  #  #
12  ########################################################  ########################################################
13    
14  __copyright__="""Copyright (c) 2003-2009 by University of Queensland  __copyright__="""Copyright (c) 2009 by University of Queensland
15  Earth Systems Science Computational Center (ESSCC)  Earth Systems Science Computational Center (ESSCC)
16  http://www.uq.edu.au/esscc  http://www.uq.edu.au/esscc
17  Primary Business: Queensland, Australia"""  Primary Business: Queensland, Australia"""
# Line 31  Author: Antony Hallam antony.hallam@uqco Line 31  Author: Antony Hallam antony.hallam@uqco
31  #######################################################EXTERNAL MODULES  #######################################################EXTERNAL MODULES
32  # To solve the problem it is necessary to import the modules we  # To solve the problem it is necessary to import the modules we
33  # require.  # require.
34    
35    
36    
37  # This imports everything from the escript library  # This imports everything from the escript library
38  from esys.escript import *  from esys.escript import *
39  # This defines LinearPDE as LinearPDE  # This defines LinearPDE as LinearPDE
# Line 44  import os Line 47  import os
47  from esys.escript.unitsSI import *  from esys.escript.unitsSI import *
48  # numpy for array handling  # numpy for array handling
49  import numpy as np  import numpy as np
50    
51  import matplotlib  import matplotlib
52  #For interactive use, you can comment out the next two lines  #For interactive use, you can comment out the next line
 import matplotlib  
53  matplotlib.use('agg') #It's just here for automated testing  matplotlib.use('agg') #It's just here for automated testing
54    
55  # pylab for matplotlib and plotting  # pylab for matplotlib and plotting
56  import pylab as pl  import pylab as pl
57  # cblib functions  # cblib functions

Legend:
Removed from v.2666  
changed lines
  Added in v.2667

  ViewVC Help
Powered by ViewVC 1.1.26