/[escript]/branches/3.4.1/modellib/py_src/input.py
ViewVC logotype

Diff of /branches/3.4.1/modellib/py_src/input.py

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

revision 270 by elspeth, Wed Nov 30 02:00:26 2005 UTC revision 323 by gross, Tue Dec 6 06:18:00 2005 UTC
# Line 77  class GaussianProfile(ParameterSet): Line 77  class GaussianProfile(ParameterSet):
77          x = self.domain.getX()          x = self.domain.getX()
78          dim = self.domain.getDim()          dim = self.domain.getDim()
79          l = length(x-self.x_c[:dim])          l = length(x-self.x_c[:dim])
80          m = (l-self.r).whereNegative()          m = whereNegative(l-self.r)
81    
82          return (m+(1.-m)*exp(-log(2.)*(l/self.width)**2))*self.A          return (m+(1.-m)*exp(-log(2.)*(l/self.width)**2))*self.A
83    

Legend:
Removed from v.270  
changed lines
  Added in v.323

  ViewVC Help
Powered by ViewVC 1.1.26