Changeset 13465
- Timestamp:
- 09/27/12 10:46:27 (12 years ago)
- Location:
- issm/trunk-jpl
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/boundaryconditions/SetIceShelfBC.py
r13462 r13465 25 25 if not os.path.exists(icefrontfile): 26 26 raise IOError("SetIceShelfBC error message: ice front file '%s' not found." % icefrontfile) 27 #nodeonicefront= numpy.logical_and( md.mesh.vertexonboundary, nodeinsideicefront.astype(float)) ) 27 28 nodeinsideicefront=ContourToMesh(md.mesh.elements,md.mesh.x.reshape(-1,1),md.mesh.y.reshape(-1,1),icefrontfile,'node',2) 28 29 nodeonicefront= numpy.bitwise_and( map(int,md.mesh.vertexonboundary), map(int,nodeinsideicefront[0].ravel()) ) -
issm/trunk-jpl/test/Par/SquareShelf.py
r13455 r13465 81 81 #Boundary conditions: 82 82 # #md=SetIceShelfBC(md) 83 print '...calling seticeshelfbc:'84 83 md=SetIceShelfBC(md,'../Exp/SquareFront.exp') 85 print '...called seticeshelfbc:'86 84 87 85 #Change name so that no test have the same name
Note:
See TracChangeset
for help on using the changeset viewer.