Changeset 27842
- Timestamp:
- 07/20/23 11:28:50 (21 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/mesh/roundmesh.py
r27841 r27842 23 23 else: 24 24 expname = tempname() + '.exp' 25 print(expname)26 exit()27 25 28 26 # Get number of points on the circle … … 44 42 45 43 # Move the closest node to the center 46 pos = np.argmin( md.mesh.x**2 + md.mesh.y**2)44 pos = np.argmin(np.add(np.power(md.mesh.x, 2), np.power(md.mesh.y, 2))) 47 45 md.mesh.x[pos] = 0. 48 46 md.mesh.y[pos] = 0.
Note:
See TracChangeset
for help on using the changeset viewer.