Changeset 24291


Ignore:
Timestamp:
10/30/19 08:26:47 (5 years ago)
Author:
Mathieu Morlighem
Message:

BUG: fixing python tests when vertex pairing is empty

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/m/classes/stressbalance.py

    r24288 r24291  
    134134        md = checkfield(md, 'fieldname', 'stressbalance.loadingforce', 'size', [md.mesh.numberofvertices, 3])
    135135        md = checkfield(md, 'fieldname', 'stressbalance.requested_outputs', 'stringrow', 1)
    136         if not np.any(np.isnan(self.vertex_pairing)):
     136        if not np.any(np.isnan(self.vertex_pairing)) and len(self.vertex_pairing)>0:
    137137            md = checkfield(md, 'fieldname', 'stressbalance.vertex_pairing', '>', 0)
    138138        #singular solution
Note: See TracChangeset for help on using the changeset viewer.