Changeset 12643 for issm/trunk


Ignore:
Timestamp:
07/17/12 12:10:09 (13 years ago)
Author:
lemorzad
Message:

minor modification of PddSurfaceMassBalance

Location:
issm/trunk/src/c/objects/Elements
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/c/objects/Elements/Penta.cpp

    r12641 r12643  
    22622262   double h[NUMVERTICES],s[NUMVERTICES]; // ,b
    22632263   double rho_water,rho_ice;
    2264    int    i;
    22652264
    22662265   /*Recover monthly temperatures and precipitation*/
     
    22902289
    22912290   /*measure the surface mass balance*/
    2292    for (i = 0; i < NUMVERTICES; i++){
    2293      agd[i]=PddSurfaceMassBlance(&monthlytemperatures[i][0], &monthlyprec[i][0], pdds, pds, signorm, yts, h[i], s[i], rho_ice, rho_water);
     2291   for (int iv = 0; iv < NUMVERTICES; iv++){
     2292     agd[iv]=PddSurfaceMassBlance(&monthlytemperatures[iv][0], &monthlyprec[iv][0], pdds, pds, signorm, yts, h[iv], s[iv], rho_ice, rho_water);
    22942293   }
    22952294
  • issm/trunk/src/c/objects/Elements/Tria.cpp

    r12641 r12643  
    20932093   double h[NUMVERTICES],s[NUMVERTICES]; // ,b
    20942094   double rho_water,rho_ice;
    2095    int    i;
    20962095
    20972096   /*Recover monthly temperatures and precipitation*/
     
    21212120
    21222121   /*measure the surface mass balance*/
    2123    for (i = 0; i < NUMVERTICES; i++){
    2124      agd[i]=PddSurfaceMassBlance(&monthlytemperatures[i][0], &monthlyprec[i][0], pdds, pds, signorm, yts, h[i], s[i], rho_ice, rho_water);
     2122   for (int iv = 0; iv<NUMVERTICES; iv++){
     2123     agd[iv]=PddSurfaceMassBlance(&monthlytemperatures[iv][0], &monthlyprec[iv][0], pdds, pds, signorm, yts, h[iv], s[iv], rho_ice, rho_water);
    21252124   }
    21262125
Note: See TracChangeset for help on using the changeset viewer.