Changeset 22053


Ignore:
Timestamp:
09/06/17 10:06:07 (8 years ago)
Author:
Mathieu Morlighem
Message:

BUG: fixinf extrusion in py

File:
1 edited

Legend:

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

    r22037 r22053  
    704704                if hasattr(md.friction,'C'): md.friction.C=project2d(md,md.friction.C,1)
    705705                if hasattr(md.friction,'As'): md.friction.As=project2d(md,md.friction.As,1)
    706                 if hasattr(md.friction,'effective_pressure'): md.friction.effective_pressure=project2d(md,md.friction.effective_pressure,1)
     706                if hasattr(md.friction,'effective_pressure') and not np.isnan(md.friction.effective_pressure).all():
     707                    md.friction.effective_pressure=project2d(md,md.friction.effective_pressure,1)
    707708                if hasattr(md.friction,'water_layer'): md.friction.water_layer=project2d(md,md.friction.water_layer,1)
    708709                if hasattr(md.friction,'m'): md.friction.m=project2d(md,md.friction.m,1)
Note: See TracChangeset for help on using the changeset viewer.