Changeset 14735 for issm/trunk-jpl/src/c/classes/objects/Elements/Penta.cpp
- Timestamp:
- 04/24/13 09:47:46 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/classes/objects/Elements/Penta.cpp
r14663 r14735 2497 2497 IssmDouble monthlytemperatures[NUMVERTICES][12],monthlyprec[NUMVERTICES][12]; 2498 2498 IssmDouble h[NUMVERTICES],s[NUMVERTICES]; // ,b 2499 IssmDouble rho_water,rho_ice ;2499 IssmDouble rho_water,rho_ice,desfac,s0p; 2500 2500 2501 2501 /*Recover monthly temperatures and precipitation*/ … … 2524 2524 rho_water=matpar->GetRhoFreshwater(); 2525 2525 2526 /*Get desertification effect parameters*/ 2527 desfac=matpar->GetDesFac(); 2528 s0p=matpar->GetS0p(); 2529 2526 2530 /*measure the surface mass balance*/ 2527 2531 for (int iv = 0; iv < NUMVERTICES; iv++){ 2528 agd[iv]=PddSurfaceMassBlance(&monthlytemperatures[iv][0], &monthlyprec[iv][0], pdds, pds, signorm, yts, h[iv], s[iv], rho_ice, rho_water); 2532 agd[iv]=PddSurfaceMassBlance(&monthlytemperatures[iv][0], &monthlyprec[iv][0], pdds, pds, 2533 signorm, yts, h[iv], s[iv], rho_ice, rho_water, desfac, s0p); 2534 //printf("mass balance %f \n",agd[iv]); 2529 2535 } 2530 2536 … … 2656 2662 /*FUNCTION Penta::RequestedOutput{{{*/ 2657 2663 void Penta::RequestedOutput(int output_enum,int step,IssmDouble time){ 2658 2659 2664 if(IsInput(output_enum)){ 2660 2665 /*just transfer this input to results, and we are done: */ … … 3473 3478 /*Now get the average SMB over the element*/ 3474 3479 Input* smb_input = inputs->GetInput(SurfaceforcingsMassBalanceEnum); _assert_(smb_input); 3480 3475 3481 smb_input->GetInputAverage(&smb); 3476 3482 Total_Smb=rho_ice*base*smb;// smb on element in kg s-1
Note:
See TracChangeset
for help on using the changeset viewer.