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

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

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

trunk/doc/examples/cookbook/onedheatdiff002.py revision 2947 by gross, Tue Feb 2 04:21:52 2010 UTC trunk/doc/examples/cookbook/example02.py revision 2949 by gross, Thu Feb 25 05:23:11 2010 UTC
# Line 64  h=(tend-t)/outputs #size of time step Line 64  h=(tend-t)/outputs #size of time step
64  print "Expected Number of time outputs is: ", (tend-t)/h  print "Expected Number of time outputs is: ", (tend-t)/h
65  i=0 #loop counter  i=0 #loop counter
66  #the folder to put our outputs in, leave blank "" for script path  #the folder to put our outputs in, leave blank "" for script path
67  save_path= os.path.join("data","onedheatdiff002")  save_path= os.path.join("data","example02")
68  #ensure the dir exists  #ensure the dir exists
69  mkDir(save_path, os.path.join(save_path,"tempT"))  mkDir(save_path, os.path.join(save_path,"tempT"))
70    
# Line 124  pl.clf() Line 124  pl.clf()
124    
125  #os.system("mencoder mf://"+save_path+"/tempT"+"/*.png -mf type=png:\  #os.system("mencoder mf://"+save_path+"/tempT"+"/*.png -mf type=png:\
126  #w=800:h=600:fps=25 -ovc lavc -lavcopts vcodec=mpeg4 -oac copy -o \  #w=800:h=600:fps=25 -ovc lavc -lavcopts vcodec=mpeg4 -oac copy -o \
127  #onedheatdiff001tempT.avi")  #example02tempT.avi")

Legend:
Removed from v.2947  
changed lines
  Added in v.2949

  ViewVC Help
Powered by ViewVC 1.1.26