source: issm/oecreview/Archive/13393-13976/ISSM-13495-13496.diff@ 14312

Last change on this file since 14312 was 13980, checked in by Mathieu Morlighem, 12 years ago

preparing oecreview for 13393-13976'

File size: 2.2 KB
RevLine 
[13980]1Index: ../trunk-jpl/src/m/mesh/bamg.py
2===================================================================
3--- ../trunk-jpl/src/m/mesh/bamg.py (revision 13495)
4+++ ../trunk-jpl/src/m/mesh/bamg.py (revision 13496)
5@@ -158,8 +158,8 @@
6 y4=domain[0]['y'][i2]
7 # x=det([det([x1 y1; x2 y2]) x1-x2;det([x3 y3; x4 y4]) x3-x4])/det([x1-x2 y1-y2;x3-x4 y3-y4]);
8 # y=det([det([x1 y1; x2 y2]) y1-y2;det([x3 y3; x4 y4]) y3-y4])/det([x1-x2 y1-y2;x3-x4 y3-y4]);
9- x=numpy.linalg.det(numpy.array([[numpy.linalg.det(numpy.array([[x1,y1],[x2,y2]])),x1-x2],[numpy.linalg.det(numpy.array([[x3,y3],[x4,y4]])),x3-x4]]))/numpy.linalg.det(numpy.array([[x1-x2,y1-y2],[x3-x4,y3-y4]]));
10- y=numpy.linalg.det(numpy.array([[numpy.linalg.det(numpy.array([[x1,y1],[x2,y2]])),y1-y2],[numpy.linalg.det(numpy.array([[x3,y3],[x4,y4]])),y3-y4]]))/numpy.linalg.det(numpy.array([[x1-x2,y1-y2],[x3-x4,y3-y4]]));
11+ x=numpy.linalg.det(numpy.array([[numpy.linalg.det(numpy.array([[x1,y1],[x2,y2]])),x1-x2],[numpy.linalg.det(numpy.array([[x3,y3],[x4,y4]])),x3-x4]]))/numpy.linalg.det(numpy.array([[x1-x2,y1-y2],[x3-x4,y3-y4]]))
12+ y=numpy.linalg.det(numpy.array([[numpy.linalg.det(numpy.array([[x1,y1],[x2,y2]])),y1-y2],[numpy.linalg.det(numpy.array([[x3,y3],[x4,y4]])),y3-y4]]))/numpy.linalg.det(numpy.array([[x1-x2,y1-y2],[x3-x4,y3-y4]]))
13
14 segdis= sqrt((x4-x3)**2+(y4-y3)**2)
15 tipdis=numpy.array([sqrt((x-x3)**2+(y-y3)**2),sqrt((x-x4)**2+(y-y4)**2)])
16@@ -204,7 +204,7 @@
17 bamg_geometry.Edges=numpy.vstack((bamg_geometry.Edges,\
18 numpy.array([[count,count+1,2]]),\
19 numpy.hstack((numpy.arange(count+1,count+nods).reshape(-1,1),numpy.arange(count+2,count+nods+1).reshape(-1,1),(1+i)*numpy.ones((nods-1,1))))))
20- count=count+nods;
21+ count+=nods
22
23 break
24
25@@ -326,7 +326,7 @@
26 #Fill in rest of fields:
27 md.mesh.dimension=2
28 md.mesh.numberofelements=numpy.size(md.mesh.elements,axis=0)
29- md.mesh.numberofvertices=numpy.size(md.mesh.x);
30+ md.mesh.numberofvertices=numpy.size(md.mesh.x)
31 md.mesh.numberofedges=numpy.size(md.mesh.edges,axis=0)
32 md.mesh.z=numpy.zeros(md.mesh.numberofvertices)
33 md.mesh.vertexonbed=numpy.ones(md.mesh.numberofvertices)
Note: See TracBrowser for help on using the repository browser.