Changeset 24032


Ignore:
Timestamp:
06/20/19 05:31:04 (6 years ago)
Author:
bdef
Message:

BUG: minor fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/m/exp/flowlines.py

    r24031 r24032  
    6565    flowpath['name'] = 'flowline{}'.format(0)
    6666    for i in np.arange(1, len(flowpath['x'])):
    67         print(i)
    6867        flowpath['name'] = np.append(flowpath['name'], 'flowline{}'.format(i))
    6968
     
    9695            while not all(done):
    9796                #find current triangle
    98                 queue = np.squeeze(np.where(done == 0))
     97                queue = np.where(done == 0)[0]
    9998                tria = trifinder(X[queue], Y[queue])
    10099                #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:
    103103                    for outsider in outsiders:
    104104                        flowpath['x'][queue[outsider]] = np.delete(flowpath['x'][queue[outsider]][:], flowindex)
Note: See TracChangeset for help on using the changeset viewer.