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

Diff of /trunk/doc/examples/cookbook/example07b.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 139  while t<tend: Line 139  while t<tend:
139      u_rec0.append(rec.getValue(u)) #location specific recording      u_rec0.append(rec.getValue(u)) #location specific recording
140      # increment loop values      # increment loop values
141      t=t+h; n=n+1      t=t+h; n=n+1
142      print(n,"-th time step t ",t)      print("time step %d, t=%s"%(n,t))
143    
144  # save location specific recording to file  # save location specific recording to file
145  pl.savetxt(os.path.join(savepath,'u_rec.asc'),u_rec0)  pl.savetxt(os.path.join(savepath,'u_rec.asc'),u_rec0)

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

  ViewVC Help
Powered by ViewVC 1.1.26