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

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

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

revision 301 by jgs, Wed Nov 9 02:02:19 2005 UTC revision 302 by gross, Fri Dec 2 05:51:51 2005 UTC
# Line 38  def Solve1(mydomain,height): Line 38  def Solve1(mydomain,height):
38      #construct mask:      #construct mask:
39      msk=Scalar(0.,cf)      msk=Scalar(0.,cf)
40      for i in range(mydomain.getDim()):      for i in range(mydomain.getDim()):
41        msk+=x[i].whereZero()+(x[i]-l[i]).whereZero()        msk+=whereZero(x[i])+whereZero(x[i]-l[i])
42      #construct right hand side      #construct right hand side
43      f=Scalar(0,cf)      f=Scalar(0,cf)
44      for i in range(mydomain.getDim()):      for i in range(mydomain.getDim()):
# Line 72  def Solve2(mydomain,height): Line 72  def Solve2(mydomain,height):
72      #construct mask:      #construct mask:
73      msk=Scalar(0.,cf)      msk=Scalar(0.,cf)
74      for i in range(mydomain.getDim()):      for i in range(mydomain.getDim()):
75        msk+=x[i].whereZero()        msk+=whereZero(x[i])
76      #construct right hand side      #construct right hand side
77      f=Scalar(0,cf)      f=Scalar(0,cf)
78      for i in range(mydomain.getDim()):      for i in range(mydomain.getDim()):

Legend:
Removed from v.301  
changed lines
  Added in v.302

  ViewVC Help
Powered by ViewVC 1.1.26