Changeset 22747


Ignore:
Timestamp:
05/07/18 13:56:48 (7 years ago)
Author:
schlegel
Message:

CHG: check mass as done in other GEMB routines

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/modules/SurfaceMassBalancex/Gembx.cpp

    r22742 r22747  
    17631763        /*only in forward mode! avoid round in AD mode as it is not differentiable: */
    17641764        #ifndef _HAVE_ADOLC_
    1765         dm = round((mSum0 - mSum1 + mAdd)*1000);
     1765        dm = round((mSum0 - mSum1 + mAdd)*100.0)/100.0;
    17661766        dE = round(sumE0 - sumE1 - sumER +  addE);
    17671767        if (dm !=0  || dE !=0) _error_("mass or energy are not conserved in melt equations\n"
Note: See TracChangeset for help on using the changeset viewer.