# Diff of /trunk/finley/test/python/SolveTest.py

revision 299 by jgs, Wed Nov 9 02:02:19 2005 UTC revision 300 by gross, Fri Dec 2 05:47:17 2005 UTC
# Line 62  def solveVector(numDim, totalNumElem, le Line 62  def solveVector(numDim, totalNumElem, le
62      # Set Boundary Mask / pdelib Template "q" Parameter Vector      # Set Boundary Mask / pdelib Template "q" Parameter Vector
63      bndryMask = Vector(value = 0, what = contfunc)      bndryMask = Vector(value = 0, what = contfunc)
64      for i in range(meshDim):      for i in range(meshDim):
65          bndryMask += (x[i].whereZero() + (x[i]-recDim[i]).whereZero()) \          bndryMask += (whereZero(x[i]) + whereZero(x[i]-recDim[i])) \
66                  * ones((numDim,))                  * ones((numDim,))
67
68      # Set True Solution / pdelib Template "r" Parameter Vector      # Set True Solution / pdelib Template "r" Parameter Vector
# Line 132  def solveScalar(numDim, totalNumElem, le Line 132  def solveScalar(numDim, totalNumElem, le
132      # Set Boundary Mask / pdelib Template "q" Parameter Vector      # Set Boundary Mask / pdelib Template "q" Parameter Vector
133      bndryMask = Scalar(value = 0, what = contfunc)      bndryMask = Scalar(value = 0, what = contfunc)
134      for i in range(meshDim):      for i in range(meshDim):
135          bndryMask += (x[i].whereZero() + (x[i]-recDim[i]).whereZero()) * 1.0          bndryMask += (whereZero(x[i]) + whereZero(x[i]-recDim[i])) * 1.0
136
137      # Set True Solution / pdelib Template "r" Parameter Vector      # Set True Solution / pdelib Template "r" Parameter Vector
138      u = Scalar(value = 0, what = contfunc)      u = Scalar(value = 0, what = contfunc)

Legend:
 Removed from v.299 changed lines Added in v.300