/[escript]/trunk/downunder/py_src/domainbuilder.py
ViewVC logotype

Diff of /trunk/downunder/py_src/domainbuilder.py

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

revision 4097 by caltinay, Fri Dec 7 01:18:35 2012 UTC revision 4102 by gross, Wed Dec 12 06:17:03 2012 UTC
# Line 131  class DomainBuilder(object): Line 131  class DomainBuilder(object):
131              return np.array([-B_theta, 0., -B_r])              return np.array([-B_theta, 0., -B_r])
132    
133      def getSetDensityMask(self):      def getSetDensityMask(self):
134          return wherePositive(self.getDomain().getX()[self._dim-1])          x=self.getDomain().getX()
135            return wherePositive(x[self._dim-1])+whereZero(x[self._dim-1]-inf(x[self._dim-1]))
136            # \        + whereZero(x[0]-inf(x[0]))+ whereZero(x[0]-sup(x[0]))
137    
138      def getSetSusceptibilityMask(self):      def getSetSusceptibilityMask(self):
139          return wherePositive(self.getDomain().getX()[self._dim-1])          return wherePositive(self.getDomain().getX()[self._dim-1])

Legend:
Removed from v.4097  
changed lines
  Added in v.4102

  ViewVC Help
Powered by ViewVC 1.1.26