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

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

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

revision 3346 by caltinay, Fri Nov 12 01:19:02 2010 UTC revision 3389 by ahallam, Wed Dec 1 23:03:35 2010 UTC
# Line 51  if getMPISizeWorld() > 1: Line 51  if getMPISizeWorld() > 1:
51  #################################################ESTABLISHING VARIABLES  #################################################ESTABLISHING VARIABLES
52  # where to save output data  # where to save output data
53  savepath = "data/example09"  savepath = "data/example09"
54    meshpath = "data/example09m"
55  mkDir(savepath)  mkDir(savepath)
56  #Geometric and material property related variables.  #Geometric and material property related variables.
57  mx = 200. # model lenght  mx = 200. # model lenght
# Line 69  lam2=vel2**2.*rho2/2.; lam1=vel1**2.*rho Line 70  lam2=vel2**2.*rho2/2.; lam1=vel1**2.*rho
70  # Time related variables.  # Time related variables.
71  testing=True  testing=True
72  if testing:  if testing:
73      print 'The testing end time is curerntly sellected this severely limits the number of time iterations.'      print 'The testing end time is currently selected. This severely limits the number of time iterations.'
74      print "Try changing testing to False for more iterations."      print "Try changing testing to False for more iterations."
75      tend=0.001      tend=0.001
76  else:  else:
# Line 118  for it in range(0,ls): Line 119  for it in range(0,ls):
119  xc=[50,50,0]  xc=[50,50,0]
120    
121  ####################################################DOMAIN CONSTRUCTION  ####################################################DOMAIN CONSTRUCTION
122  domain=ReadMesh(os.path.join(savepath,'example09m.fly')) # create the domain  domain=ReadMesh(os.path.join(meshpath,'example09m.fly')) # create the domain
123  x=domain.getX() # get the locations of the nodes in the domain  x=domain.getX() # get the locations of the nodes in the domain
124    
125  lam=Scalar(0,Function(domain))  lam=Scalar(0,Function(domain))

Legend:
Removed from v.3346  
changed lines
  Added in v.3389

  ViewVC Help
Powered by ViewVC 1.1.26