/[escript]/trunk/doc/examples/inversion/test_commemi1.py
ViewVC logotype

Diff of /trunk/doc/examples/inversion/test_commemi1.py

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

revision 5752 by jfenwick, Wed Jul 15 10:25:45 2015 UTC revision 5753 by sshaw, Fri Jul 17 01:06:22 2015 UTC
# Line 210  def setupMesh(mode, x_start, x_extent, a Line 210  def setupMesh(mode, x_start, x_extent, a
210                            
211          # Points defining the anomaly from left-top.          # Points defining the anomaly from left-top.
212          points0 = []          points0 = []
213          for i in xrange( 0, len(coord) ):                      for i in range( 0, len(coord) ):            
214              points0.append(pycad.Point(coord[i][0], coord[i][1], 0.0))              points0.append(pycad.Point(coord[i][0], coord[i][1], 0.0))
215            
216          # Define the line segments connecting the points.          # Define the line segments connecting the points.
217          lines0 = []          lines0 = []
218          for i in xrange( 0, len(points0)-1 ):          for i in range( 0, len(points0)-1 ):
219              lines0.append(pycad.Line(points0[i],points0[i+1]))              lines0.append(pycad.Line(points0[i],points0[i+1]))
220          # Connect the last segment from end to start:              # Connect the last segment from end to start:    
221          lines0.append(pycad.Line(points0[-1], points0[0]))          lines0.append(pycad.Line(points0[-1], points0[0]))

Legend:
Removed from v.5752  
changed lines
  Added in v.5753

  ViewVC Help
Powered by ViewVC 1.1.26