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

Diff of /trunk/finley/test/python/linearElastic.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 22  http://www.opensource.org/licenses/osl-3 Line 22  http://www.opensource.org/licenses/osl-3
22  __url__="https://launchpad.net/escript-finley"  __url__="https://launchpad.net/escript-finley"
23    
24  from esys.escript import *  from esys.escript import *
25  from esys.escript.linearPDEs import LinearPDE  from esys.escript.linearPDEs import LinearPDE, SolverOptions
26  from esys import finley  from esys import finley
27  from esys.weipa import saveVTK  from esys.weipa import saveVTK
28    
# Line 56  mypde.setValue(A=mu * ( swap_axes(k3Xk3, Line 56  mypde.setValue(A=mu * ( swap_axes(k3Xk3,
56  mypde.setSymmetryOn()  mypde.setSymmetryOn()
57  mypde.getSolverOptions().setVerbosityOn()  mypde.getSolverOptions().setVerbosityOn()
58  # use direct solver (default is iterative)  # use direct solver (default is iterative)
59  #mypde.getSolverOptions().setSolverMethod(mypde.getSolverOptions().DIRECT)  #mypde.getSolverOptions().setSolverMethod(SolverOptions.DIRECT)
60  # mypde.getSolverOptions().setPreconditioner(mypde.getSolverOptions().AMG)  # mypde.getSolverOptions().setPreconditioner(SolverOptions.AMG)
61  # solve for the displacements:  # solve for the displacements:
62  u_d=mypde.getSolution()  u_d=mypde.getSolution()
63    

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

  ViewVC Help
Powered by ViewVC 1.1.26