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

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

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

revision 3891 by gross, Wed Feb 3 01:39:15 2010 UTC revision 3892 by jfenwick, Tue Apr 10 08:57:23 2012 UTC
# Line 46  tend=0.5    #end time Line 46  tend=0.5    #end time
46  #calculating )the timestep  #calculating )the timestep
47  h=(1./5.)*sqrt(rho/(lam+2*mu))*(mx/ndx)  h=(1./5.)*sqrt(rho/(lam+2*mu))*(mx/ndx)
48  #Check to make sure number of time steps is not too large.  #Check to make sure number of time steps is not too large.
49  print "Time step size= ",h, "Expected number of outputs= ",tend/h  print("Time step size= ",h, "Expected number of outputs= ",tend/h)
50    
51  #uncomment the following lines to give the user a chance to stop  #uncomment the following lines to give the user a chance to stop
52  #proceeder = raw_input("Is this ok?(y/n)")  #proceeder = raw_input("Is this ok?(y/n)")

Legend:
Removed from v.3891  
changed lines
  Added in v.3892

  ViewVC Help
Powered by ViewVC 1.1.26