Changeset 18266


Ignore:
Timestamp:
07/18/14 12:59:35 (11 years ago)
Author:
schlegel
Message:

CHG: cleanup gradients

File:
1 edited

Legend:

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

    r18001 r18266  
    7272                IssmDouble* b_pos       = xNew<IssmDouble>(numvertices); // Hs-SMB relation parameter
    7373                IssmDouble* b_neg       = xNew<IssmDouble>(numvertices); // Hs-SMB relation paremeter
    74                 IssmDouble* h           = xNew<IssmDouble>(numvertices); // ice thickness (m)
    7574                IssmDouble* s           = xNew<IssmDouble>(numvertices); // surface elevation (m)
    7675                IssmDouble* smb         = xNew<IssmDouble>(numvertices);
     
    8281                element->GetInputListOnVertices(b_neg,SurfaceforcingsBNegEnum);
    8382
    84                 /*Recover surface elevatio at vertices: */
    85                 element->GetInputListOnVertices(h,ThicknessEnum);
     83                /*Recover surface elevation at vertices: */
    8684                element->GetInputListOnVertices(s,SurfaceEnum);
    8785
     
    9896                                smb[v]=Smbref[v]+b_neg[v]*(s[v]-Href[v]);
    9997                        }
    100                         smb[v]=smb[v]/rho_ice;      // SMB in m/y ice
     98                        smb[v]=smb[v]/1000*rho_water/rho_ice;      // SMB in m/y ice
    10199                }  //end of the loop over the vertices
    102100
     
    107105                xDelete<IssmDouble>(b_pos);
    108106                xDelete<IssmDouble>(b_neg);
    109                 xDelete<IssmDouble>(h);
    110107                xDelete<IssmDouble>(s);
    111108                xDelete<IssmDouble>(smb);
Note: See TracChangeset for help on using the changeset viewer.