/[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 155 by jgs, Wed Nov 9 02:02:19 2005 UTC revision 323 by gross, Tue Dec 6 06:18:00 2005 UTC
# Line 19  class Sequencer(Model): Line 19  class Sequencer(Model):
19    
20          """          """
21          Model.__init__(self,debug=debug)          Model.__init__(self,debug=debug)
22          self.declareParameter(t=t, \          self.declareParameter(t=t,
23                                t_end=t_end,  \                                t_end=t_end,
24                                dt_max=dt_max)                                dt_max=dt_max)
25    
26      def doInitialization(self):      def doInitialization(self):
# 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.155  
changed lines
  Added in v.323

  ViewVC Help
Powered by ViewVC 1.1.26