Changeset 18266
- Timestamp:
- 07/18/14 12:59:35 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/modules/SurfaceMassBalancex/SurfaceMassBalancex.cpp
r18001 r18266 72 72 IssmDouble* b_pos = xNew<IssmDouble>(numvertices); // Hs-SMB relation parameter 73 73 IssmDouble* b_neg = xNew<IssmDouble>(numvertices); // Hs-SMB relation paremeter 74 IssmDouble* h = xNew<IssmDouble>(numvertices); // ice thickness (m)75 74 IssmDouble* s = xNew<IssmDouble>(numvertices); // surface elevation (m) 76 75 IssmDouble* smb = xNew<IssmDouble>(numvertices); … … 82 81 element->GetInputListOnVertices(b_neg,SurfaceforcingsBNegEnum); 83 82 84 /*Recover surface elevatio at vertices: */ 85 element->GetInputListOnVertices(h,ThicknessEnum); 83 /*Recover surface elevation at vertices: */ 86 84 element->GetInputListOnVertices(s,SurfaceEnum); 87 85 … … 98 96 smb[v]=Smbref[v]+b_neg[v]*(s[v]-Href[v]); 99 97 } 100 smb[v]=smb[v]/ rho_ice; // SMB in m/y ice98 smb[v]=smb[v]/1000*rho_water/rho_ice; // SMB in m/y ice 101 99 } //end of the loop over the vertices 102 100 … … 107 105 xDelete<IssmDouble>(b_pos); 108 106 xDelete<IssmDouble>(b_neg); 109 xDelete<IssmDouble>(h);110 107 xDelete<IssmDouble>(s); 111 108 xDelete<IssmDouble>(smb);
Note:
See TracChangeset
for help on using the changeset viewer.