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

Diff of /trunk/doc/examples/cookbook/wavesolver2d002.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 45  tend=0.1    #end time Line 45  tend=0.1    #end time
45  #calculating )the timestep  #calculating )the timestep
46  h=(1./5.)*sqrt(rho/(lam+2*mu))*(mx/ndx)  h=(1./5.)*sqrt(rho/(lam+2*mu))*(mx/ndx)
47  #Check to make sure number of time steps is not too large.  #Check to make sure number of time steps is not too large.
48  print "Time step size= ",h, "Expected number of outputs= ",tend/h  print("Time step size= ",h, "Expected number of outputs= ",tend/h)
49    
50  #uncomment the following lines to give the user a chance to stop  #uncomment the following lines to give the user a chance to stop
51  #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