# Diff of /branches/symbolic_from_3470/dudley/test/python/slip_stress_mesh_old.py

revision 3788 by caltinay, Tue Mar 15 04:23:54 2011 UTC revision 3789 by caltinay, Tue Jan 31 04:55:05 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.3788 changed lines Added in v.3789