Changeset 18584


Ignore:
Timestamp:
10/07/14 09:03:24 (10 years ago)
Author:
Mathieu Morlighem
Message:

BUG: fixed m/yr m/sec conversion on SMB

File:
1 edited

Legend:

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

    r18521 r18584  
    3131                        break;
    3232                case SMBgradientsEnum:
    33                         if(VerboseSolution())_printf_(" call smb gradients module\n");
     33                        if(VerboseSolution())_printf0_("        call smb gradients module\n");
    3434                        SmbGradientsx(femmodel);
    3535                        break;
    3636                case SMBhenningEnum:
    37                         if(VerboseSolution())_printf_("  call smb Henning module\n");
     37                        if(VerboseSolution())_printf0_("  call smb Henning module\n");
    3838                        SmbHenningx(femmodel);
    3939                        break;
    4040                case SMBcomponentsEnum:
    41                         if(VerboseSolution())_printf_("  call smb Components module\n");
     41                        if(VerboseSolution())_printf0_("  call smb Components module\n");
    4242                        SmbComponentsx(femmodel);
    4343                        break;
    4444                case SMBmeltcomponentsEnum:
    45                         if(VerboseSolution())_printf_("  call smb Melt Components module\n");
     45                        if(VerboseSolution())_printf0_("  call smb Melt Components module\n");
    4646                        SmbMeltComponentsx(femmodel);
    4747                        break;
     
    263263                        }
    264264           
    265             /* Compute smb including anomaly,
    266              correct for number of seconds in a year [s/yr]*/
    267             smb = smb + anomaly*yts;
    268            
     265                        /* Compute smb including anomaly,
     266                                correct for number of seconds in a year [s/yr]*/
     267                        smb = smb/yts + anomaly;
     268
     269
    269270                        /*Update array accordingly*/
    270271                        smblist[v] = smb;
Note: See TracChangeset for help on using the changeset viewer.