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

Diff of /trunk/finley/test/python/lumping_wave_test.py

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

revision 4657 by jfenwick, Thu Feb 6 06:12:20 2014 UTC revision 4821 by sshaw, Tue Apr 1 04:58:33 2014 UTC
# Line 27  http://www.opensource.org/licenses/osl-3 Line 27  http://www.opensource.org/licenses/osl-3
27  __url__="https://launchpad.net/escript-finley"  __url__="https://launchpad.net/escript-finley"
28    
29  from esys.escript import *  from esys.escript import *
30  from esys.escript.linearPDEs import LinearSinglePDE  from esys.escript.linearPDEs import LinearSinglePDE, SolverOptions
31  from esys.escript.pdetools import Locator  from esys.escript.pdetools import Locator
32  from esys import finley  from esys import finley
33  from math import pi  from math import pi
# Line 56  def runValetAcceleration(order): Line 56  def runValetAcceleration(order):
56     u_f=ref_u(x,0)     u_f=ref_u(x,0)
57        
58     mypde_HRZ=LinearSinglePDE(domain)     mypde_HRZ=LinearSinglePDE(domain)
59     mypde_HRZ.getSolverOptions().setSolverMethod(mypde_HRZ.getSolverOptions().HRZ_LUMPING)     mypde_HRZ.getSolverOptions().setSolverMethod(SolverOptions.HRZ_LUMPING)
60     mypde_HRZ.setValue(D=1,q=q)     mypde_HRZ.setValue(D=1,q=q)
61     u_HRZ_old=ref_u(x,-dt)     u_HRZ_old=ref_u(x,-dt)
62     u_HRZ=ref_u(x,0)     u_HRZ=ref_u(x,0)
63        
64     mypde_RS=LinearSinglePDE(domain)     mypde_RS=LinearSinglePDE(domain)
65     mypde_RS.getSolverOptions().setSolverMethod(mypde_RS.getSolverOptions().ROWSUM_LUMPING)     mypde_RS.getSolverOptions().setSolverMethod(SolverOptions.ROWSUM_LUMPING)
66     mypde_RS.setValue(D=1,q=q)     mypde_RS.setValue(D=1,q=q)
67     u_RS_old=ref_u(x,-dt)     u_RS_old=ref_u(x,-dt)
68     u_RS=ref_u(x,0)     u_RS=ref_u(x,0)
# Line 130  def runValetDisplacement(order): Line 130  def runValetDisplacement(order):
130     u_f=ref_u(x,0)     u_f=ref_u(x,0)
131        
132     mypde_HRZ=LinearSinglePDE(domain)     mypde_HRZ=LinearSinglePDE(domain)
133     mypde_HRZ.getSolverOptions().setSolverMethod(mypde_HRZ.getSolverOptions().HRZ_LUMPING)     mypde_HRZ.getSolverOptions().setSolverMethod(SolverOptions.HRZ_LUMPING)
134     mypde_HRZ.setValue(D=1,q=q)     mypde_HRZ.setValue(D=1,q=q)
135     u_HRZ_old=ref_u(x,-dt)     u_HRZ_old=ref_u(x,-dt)
136     u_HRZ=ref_u(x,0)     u_HRZ=ref_u(x,0)
137        
138     mypde_RS=LinearSinglePDE(domain)     mypde_RS=LinearSinglePDE(domain)
139     mypde_RS.getSolverOptions().setSolverMethod(mypde_RS.getSolverOptions().ROWSUM_LUMPING)     mypde_RS.getSolverOptions().setSolverMethod(SolverOptions.ROWSUM_LUMPING)
140     mypde_RS.setValue(D=1,q=q)     mypde_RS.setValue(D=1,q=q)
141     u_RS_old=ref_u(x,-dt)     u_RS_old=ref_u(x,-dt)
142     u_RS=ref_u(x,0)     u_RS=ref_u(x,0)

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

  ViewVC Help
Powered by ViewVC 1.1.26