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

Diff of /trunk/doc/examples/cookbook/wavesolver2d003.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 89  output="mpl" Line 89  output="mpl"
89    
90    
91    
92  from esys.escript.linearPDEs import LinearPDE  from esys.escript.linearPDEs import LinearPDE, SolverOptions
93  x=domain.getX()  x=domain.getX()
94    
95  ## boundary conditions  ## boundary conditions
# Line 172  abc=abcleft*abcright*abcbottom*abctop Line 172  abc=abcleft*abcright*abcbottom*abctop
172  mypde=LinearPDE(domain)  mypde=LinearPDE(domain)
173  print(mypde.isUsingLumping())  print(mypde.isUsingLumping())
174  print(mypde.getSolverOptions())  print(mypde.getSolverOptions())
175  #mypde.getSolverOptions().setSolverMethod(mypde.getSolverOptions().LUMPING)  #mypde.getSolverOptions().setSolverMethod(SolverOptions.LUMPING)
176  mypde.setSymmetryOn()  mypde.setSymmetryOn()
177  kmat = kronecker(domain)  kmat = kronecker(domain)
178  mypde.setValue(D=kmat*rho)  mypde.setValue(D=kmat*rho)

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

  ViewVC Help
Powered by ViewVC 1.1.26