Changeset 14018
- Timestamp:
- 11/27/12 14:44:33 (12 years ago)
- Location:
- issm/trunk-jpl/src/m
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/classes/model/model.py
r14015 r14018 363 363 if md1.mesh.dimension==2: 364 364 [md2.mesh.vertexconnectivity]=NodeConnectivity(md2.mesh.elements,md2.mesh.numberofvertices) 365 md2.mesh.vertexconnectivity=md2.mesh.vertexconnectivity.astype(int)366 365 [md2.mesh.elementconnectivity]=ElementConnectivity(md2.mesh.elements,md2.mesh.vertexconnectivity) 367 md2.mesh.elementconnectivity=md2.mesh.elementconnectivity.astype(int)368 366 md2.mesh.segments=contourenvelope(md2) 369 367 md2.mesh.vertexonboundary=numpy.zeros(numberofvertices2,bool) … … 372 370 #First do the connectivity for the contourenvelope in 2d 373 371 [md2.mesh.vertexconnectivity]=NodeConnectivity(md2.mesh.elements2d,md2.mesh.numberofvertices2d) 374 md2.mesh.vertexconnectivity=md2.mesh.vertexconnectivity.astype(int)375 372 [md2.mesh.elementconnectivity]=ElementConnectivity(md2.mesh.elements2d,md2.mesh.vertexconnectivity) 376 md2.mesh.elementconnectivity=md2.mesh.elementconnectivity.astype(int)377 373 md2.mesh.segments=contourenvelope(md2) 378 374 md2.mesh.vertexonboundary=numpy.zeros(numberofvertices2/md2.mesh.numberoflayers,bool) … … 381 377 #Then do it for 3d as usual 382 378 [md2.mesh.vertexconnectivity]=NodeConnectivity(md2.mesh.elements,md2.mesh.numberofvertices) 383 md2.mesh.vertexconnectivity=md2.mesh.vertexconnectivity.astype(int)384 379 [md2.mesh.elementconnectivity]=ElementConnectivity(md2.mesh.elements,md2.mesh.vertexconnectivity) 385 md2.mesh.elementconnectivity=md2.mesh.elementconnectivity.astype(int)386 380 387 381 #Boundary conditions: Dirichlets on new boundary -
issm/trunk-jpl/src/m/mesh/triangle.py
r13991 r14018 60 60 61 61 #Now, build the connectivity tables for this mesh. 62 [md.mesh.vertexconnectivity]= NodeConnectivity(md.mesh.elements, md.mesh.numberofvertices) 63 md.mesh.vertexconnectivity=md.mesh.vertexconnectivity.astype(int) 62 [md.mesh.vertexconnectivity] = NodeConnectivity(md.mesh.elements, md.mesh.numberofvertices) 64 63 [md.mesh.elementconnectivity] = ElementConnectivity(md.mesh.elements, md.mesh.vertexconnectivity) 65 md.mesh.elementconnectivity=md.mesh.elementconnectivity.astype(int)66 64 67 65 #type of model -
issm/trunk-jpl/src/m/parameterization/contourenvelope.py
r13991 r14018 41 41 if numpy.size(md.mesh.vertexconnectivity,axis=0)!=md.mesh.numberofvertices and numpy.size(md.mesh.vertexconnectivity,axis=0)!=md.mesh.numberofvertices2d: 42 42 [md.mesh.vertexconnectivity]=NodeConnectivity(md.mesh.elements,md.mesh.numberofvertices) 43 md.mesh.vertexconnectivity=md.mesh.vertexconnectivity.astype(int)44 43 if numpy.size(md.mesh.elementconnectivity,axis=0)!=md.mesh.numberofelements and numpy.size(md.mesh.elementconnectivity,axis=0)!=md.mesh.numberofelements2d: 45 44 [md.mesh.elementconnectivity]=ElementConnectivity(md.mesh.elements,md.mesh.vertexconnectivity) 46 md.mesh.elementconnectivity=md.mesh.elementconnectivity.astype(int)47 45 48 46 #get nodes inside profile
Note:
See TracChangeset
for help on using the changeset viewer.