/[escript]/trunk/doc/examples/cookbook/example09b.py
ViewVC logotype

Diff of /trunk/doc/examples/cookbook/example09b.py

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

revision 4004 by jfenwick, Fri Sep 21 02:47:54 2012 UTC revision 4005 by caltinay, Fri Sep 28 06:09:03 2012 UTC
# Line 178  while t<tend: Line 178  while t<tend:
178      t=t+h; n=n+1      t=t+h; n=n+1
179      if (n < ls):      if (n < ls):
180          mypde.setValue(y=source[n]*yx*src_dir*stop) #set the source as a function on the boundary          mypde.setValue(y=source[n]*yx*src_dir*stop) #set the source as a function on the boundary
181      print(n,"-th time step t ",t)      print("time step %d, t=%s"%(n,t))

Legend:
Removed from v.4004  
changed lines
  Added in v.4005

  ViewVC Help
Powered by ViewVC 1.1.26