Diff of /trunk/doc/examples/wave.py

revision 707 by gross, Wed Apr 12 23:58:02 2006 UTC revision 1058 by jongui, Fri Mar 23 04:06:56 2007 UTC
# Line 42  def wavePropagation(domain,h,tend,lam,mu Line 42  def wavePropagation(domain,h,tend,lam,mu
42     t=0     t=0
43
44     # define the location of the point source     # define the location of the point source
45     L=Locator(domain,xc)     L=Locator(domain,numarray.array(xc))
46     # find potential at point source     # find potential at point source
47     u_pc=L.getValue(u)     u_pc=L.getValue(u)
48     print "u at point charge=",u_pc     print "u at point charge=",u_pc
# Line 70  def wavePropagation(domain,h,tend,lam,mu Line 70  def wavePropagation(domain,h,tend,lam,mu
70       t+=h       t+=h
71       n+=1       n+=1
72       print n,"-th time step t ",t       print n,"-th time step t ",t
L=Locator(domain,xc)
73       u_pc=L.getValue(u)       u_pc=L.getValue(u)
74       print "u at point charge=",u_pc       print "u at point charge=",u_pc
75

Legend:
 Removed from v.707 changed lines Added in v.1058