/[escript]/trunk/doc/examples/pyvisi/diffusion_with_pyvisi.py
ViewVC logotype

Diff of /trunk/doc/examples/pyvisi/diffusion_with_pyvisi.py

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

revision 1102 by jongui, Tue Apr 17 07:11:02 2007 UTC revision 1103 by jongui, Wed Apr 18 04:31:06 2007 UTC
# Line 41  s = Scene(renderer = JPG_RENDERER, x_siz Line 41  s = Scene(renderer = JPG_RENDERER, x_siz
41  dc = DataCollector(source = Source.ESCRIPT)  dc = DataCollector(source = Source.ESCRIPT)
42    
43  # ... start iteration:  # ... start iteration:
44  while t<0.4:  while t<0.4*100:
45        i+=1        i+=1
46        t+=h        t+=h
47        print "time step :",t        print "time step :",t
# Line 60  while t<0.4: Line 60  while t<0.4:
60                
61        # Render the object.        # Render the object.
62        s.render(image_name = PYVISI_EXAMPLE_IMAGES_PATH +          s.render(image_name = PYVISI_EXAMPLE_IMAGES_PATH +  
63                "diffusion_%02d.jpg" % i)                "diffusion%02d.jpg" % i)
64    

Legend:
Removed from v.1102  
changed lines
  Added in v.1103

  ViewVC Help
Powered by ViewVC 1.1.26