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

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

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

revision 4820 by jfenwick, Thu Feb 6 06:12:20 2014 UTC revision 4821 by sshaw, Tue Apr 1 04:58:33 2014 UTC
# Line 42  from esys.escript.unitsSI import * Line 42  from esys.escript.unitsSI import *
42  import numpy as np  import numpy as np
43  import pylab as pl  import pylab as pl
44  import matplotlib.cm as cm  import matplotlib.cm as cm
45  from esys.escript.linearPDEs import LinearPDE  from esys.escript.linearPDEs import LinearPDE, SolverOptions
46    
47  ########################################################MPI WORLD CHECK  ########################################################MPI WORLD CHECK
48  if getMPISizeWorld() > 1:  if getMPISizeWorld() > 1:
# Line 91  x=mydomain.getX() #get the node location Line 91  x=mydomain.getX() #get the node location
91  ##########################################################ESTABLISH PDE  ##########################################################ESTABLISH PDE
92  mypde=LinearPDE(mydomain) # create pde  mypde=LinearPDE(mydomain) # create pde
93  # turn lumping on for more efficient solving  # turn lumping on for more efficient solving
94  mypde.getSolverOptions().setSolverMethod(mypde.getSolverOptions().HRZ_LUMPING)  mypde.getSolverOptions().setSolverMethod(SolverOptions.HRZ_LUMPING)
95  mypde.setSymmetryOn() # turn symmetry on  mypde.setSymmetryOn() # turn symmetry on
96  mypde.setValue(D=1.) # set the value of D in the general form to 1.  mypde.setValue(D=1.) # set the value of D in the general form to 1.
97    

Legend:
Removed from v.4820  
changed lines
  Added in v.4821

  ViewVC Help
Powered by ViewVC 1.1.26