/[escript]/trunk/dudley/test/python/slip_stress_mesh_old.py
ViewVC logotype

Diff of /trunk/dudley/test/python/slip_stress_mesh_old.py

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

revision 3773 by jfenwick, Mon Oct 11 01:48:14 2010 UTC revision 3774 by jfenwick, Wed Jan 18 06:29:34 2012 UTC
# Line 182  def faultL(l0,l1, l2,ne0, ne1, ne2,conta Line 182  def faultL(l0,l1, l2,ne0, ne1, ne2,conta
182                Node[2][k]=i2start*l2/ne2 + (i2+1)*l2/ne2                Node[2][k]=i2start*l2/ne2 + (i2+1)*l2/ne2
183        # elif n1double==0:        # elif n1double==0:
184        # elif n2double==0:        # elif n2double==0:
185        print "fstart = ",[i0start*l0/ne0, i1start*l1/ne1                  , i2start*l2/ne2]        print("fstart = ",[i0start*l0/ne0, i1start*l1/ne1                  , i2start*l2/ne2])
186        print "fend = ", [i0start*l0/ne0 , i1start*l1/ne1 + n1double*l1/ne1, i2start*l2/ne2 + n2double*l2/ne2]        print("fend = ", [i0start*l0/ne0 , i1start*l1/ne1 + n1double*l1/ne1, i2start*l2/ne2 + n2double*l2/ne2])
187    
188     # write nodes to file     # write nodes to file
189     for i in range(numNodes):     for i in range(numNodes):
# Line 204  def faultL(l0,l1, l2,ne0, ne1, ne2,conta Line 204  def faultL(l0,l1, l2,ne0, ne1, ne2,conta
204    
205     #print 'Interior elements'     #print 'Interior elements'
206    
207     print "M0,M1,M2",M0,M1,M2     print("M0,M1,M2",M0,M1,M2)
208    
209     for i2 in range(ne2):     for i2 in range(ne2):
210        for i1 in range (ne1):        for i1 in range (ne1):

Legend:
Removed from v.3773  
changed lines
  Added in v.3774

  ViewVC Help
Powered by ViewVC 1.1.26