/[escript]/trunk/escript/py_src/pdetools.py
ViewVC logotype

Diff of /trunk/escript/py_src/pdetools.py

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

revision 1896 by gross, Sun Oct 19 23:16:21 2008 UTC revision 1956 by gross, Mon Nov 3 05:08:42 2008 UTC
# Line 1604  class HomogeneousSaddlePointProblem(obje Line 1604  class HomogeneousSaddlePointProblem(obje
1604    
1605  def MaskFromBoundaryTag(domain,*tags):  def MaskFromBoundaryTag(domain,*tags):
1606     """     """
1607     create a mask on the Solution(domain) function space which one for samples     creates a mask on the Solution(domain) function space which one for samples
1608     that touch the boundary tagged by tags.     that touch the boundary tagged by tags.
1609    
1610     usage: m=MaskFromBoundaryTag(domain,"left", "right")     usage: m=MaskFromBoundaryTag(domain,"left", "right")
# Line 1617  def MaskFromBoundaryTag(domain,*tags): Line 1617  def MaskFromBoundaryTag(domain,*tags):
1617     @rtype: L{escript.Data} of rank 0     @rtype: L{escript.Data} of rank 0
1618     """     """
1619     pde=linearPDEs.LinearPDE(domain,numEquations=1, numSolutions=1)     pde=linearPDEs.LinearPDE(domain,numEquations=1, numSolutions=1)
1620     d=escript.Scalar(0.,escript.FunctionOnBoundary(function_space.getDomain()))     d=escript.Scalar(0.,escript.FunctionOnBoundary(domain))
1621     for t in tags: d.setTaggedValue(t,1.)     for t in tags: d.setTaggedValue(t,1.)
1622     pde.setValue(y=d)     pde.setValue(y=d)
1623     return util.whereNonZero(pde.getRightHandSide())     return util.whereNonZero(pde.getRightHandSide())

Legend:
Removed from v.1896  
changed lines
  Added in v.1956

  ViewVC Help
Powered by ViewVC 1.1.26