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

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

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

revision 4124 by gross, Wed Dec 19 00:24:50 2012 UTC revision 4125 by gross, Wed Jan 2 06:15:00 2013 UTC
# Line 103  class ForwardModelWithPotential(ForwardM Line 103  class ForwardModelWithPotential(ForwardM
103          self.__pde.getSolverOptions().setTolerance(tol)          self.__pde.getSolverOptions().setTolerance(tol)
104          self.__pde.setSymmetryOn()          self.__pde.setSymmetryOn()
105          z=x[DIM-1]          z=x[DIM-1]
106          self.__pde.setValue(q=whereZero(z-BX[DIM-1][1])+whereZero(z-BX[DIM-1][0]))          self.__pde.setValue(q=whereZero(z-BX[DIM-1][1]))
107                    
108          self.edge_lengths=np.asarray(boundingBoxEdgeLengths(domain))          self.edge_lengths=np.asarray(boundingBoxEdgeLengths(domain))
109          self.diameter=1./sqrt(sum(1./self.edge_lengths**2))          self.diameter=1./sqrt(sum(1./self.edge_lengths**2))

Legend:
Removed from v.4124  
changed lines
  Added in v.4125

  ViewVC Help
Powered by ViewVC 1.1.26