/[escript]/trunk/doc/user/wave.tex
ViewVC logotype

Diff of /trunk/doc/user/wave.tex

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

revision 2419 by jfenwick, Fri Apr 3 00:37:25 2009 UTC revision 2420 by gross, Thu May 14 02:28:58 2009 UTC
# Line 139  def wavePropagation(domain,h,tend,lam,mu Line 139  def wavePropagation(domain,h,tend,lam,mu
139     u_pc_y = u_pc[1]     u_pc_y = u_pc[1]
140     u_pc_z = u_pc[2]     u_pc_z = u_pc[2]
141     # open file to save displacement at point source     # open file to save displacement at point source
142     u_pc_data=open('./data/U_pc.out','w')     u_pc_data=FileWriter('./data/U_pc.out')
143     u_pc_data.write("%f %f %f %f\n"%(t,u_pc_x,u_pc_y,u_pc_z))     u_pc_data.write("%f %f %f %f\n"%(t,u_pc_x,u_pc_y,u_pc_z))
144     while t<tend:     while t<tend:
145       # ... get current stress ....       # ... get current stress ....

Legend:
Removed from v.2419  
changed lines
  Added in v.2420

  ViewVC Help
Powered by ViewVC 1.1.26