/[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 3388 by caltinay, Thu Nov 25 07:09:23 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 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.3388  
changed lines
  Added in v.3389

  ViewVC Help
Powered by ViewVC 1.1.26