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

Diff of /trunk/finley/test/python/lumping_advection_test.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 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 runTaylorGalerkinIncremental(order): Line 56  def runTaylorGalerkinIncremental(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=ref_u(x,0)     u_HRZ=ref_u(x,0)
62        
63     mypde_RS=LinearSinglePDE(domain)     mypde_RS=LinearSinglePDE(domain)
64     mypde_RS.getSolverOptions().setSolverMethod(mypde_RS.getSolverOptions().ROWSUM_LUMPING)     mypde_RS.getSolverOptions().setSolverMethod(SolverOptions.ROWSUM_LUMPING)
65     mypde_RS.setValue(D=1,q=q)     mypde_RS.setValue(D=1,q=q)
66     u_RS=ref_u(x,0)     u_RS=ref_u(x,0)
67        
# Line 131  def runTaylorGalerkinDirect(order): Line 131  def runTaylorGalerkinDirect(order):
131     u_f=ref_u(x,0)     u_f=ref_u(x,0)
132        
133     mypde_HRZ=LinearSinglePDE(domain)     mypde_HRZ=LinearSinglePDE(domain)
134     mypde_HRZ.getSolverOptions().setSolverMethod(mypde_HRZ.getSolverOptions().HRZ_LUMPING)     mypde_HRZ.getSolverOptions().setSolverMethod(SolverOptions.HRZ_LUMPING)
135     mypde_HRZ.setValue(D=1,q=q)     mypde_HRZ.setValue(D=1,q=q)
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=ref_u(x,0)     u_RS=ref_u(x,0)
142        

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

  ViewVC Help
Powered by ViewVC 1.1.26