Changeset 17068


Ignore:
Timestamp:
01/07/14 17:11:26 (11 years ago)
Author:
Eric.Larour
Message:

CHG: make sure when area is nill that our misfit is nill too.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/classes/Misfit.h

    r17048 r17068  
    139139                         misfit_t=all_misfit_t;
    140140                         
    141                          /*Divide by surface area: */
    142                          misfit_t=misfit_t/area_t;
     141                         /*Divide by surface area if not nill!: */
     142                         if (area_t!=0) misfit_t=misfit_t/area_t;
    143143
    144144                         /*Recover delta_t: */
Note: See TracChangeset for help on using the changeset viewer.