Changeset 24032
- Timestamp:
- 06/20/19 05:31:04 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/exp/flowlines.py
r24031 r24032 65 65 flowpath['name'] = 'flowline{}'.format(0) 66 66 for i in np.arange(1, len(flowpath['x'])): 67 print(i)68 67 flowpath['name'] = np.append(flowpath['name'], 'flowline{}'.format(i)) 69 68 … … 96 95 while not all(done): 97 96 #find current triangle 98 queue = np. squeeze(np.where(done == 0))97 queue = np.where(done == 0)[0] 99 98 tria = trifinder(X[queue], Y[queue]) 100 99 #check that the point are actually inside a triangle of the mesh 101 outsiders = np.squeeze(np.where(tria < 0)) 102 if len(outsiders) > 0: 100 outsiders = np.where(tria < 0)[0] 101 print('outsider is {} with queue {}'.format(outsiders, queue)) 102 if np.size(outsiders) > 0: 103 103 for outsider in outsiders: 104 104 flowpath['x'][queue[outsider]] = np.delete(flowpath['x'][queue[outsider]][:], flowindex)
Note:
See TracChangeset
for help on using the changeset viewer.