Changeset 15286
- Timestamp:
- 06/19/13 14:16:58 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/classes/Elements/Tria.cpp
r15283 r15286 6051 6051 /*Check that all nodes are active, else return empty matrix*/ 6052 6052 if(!this->AllActive()){ 6053 delete gauss;6054 6053 return NULL; 6055 6054 } … … 6226 6225 /*Check that all nodes are active, else return empty matrix*/ 6227 6226 if(!this->AllActive()){ 6228 delete gauss;6229 6227 return NULL; 6230 6228 } … … 6524 6522 switch(transfermethod){ 6525 6523 case 0: 6526 /*Just kipping the transfer to zero*/ 6527 wh_trans=0.0; 6524 /*Just keepping the transfer to zero, should be OK with the initial value of transfer*/ 6528 6525 break; 6529 6526 case 1: … … 6539 6536 6540 6537 for(int i=0;i<numdof;i++){ 6538 /*No transfer if the EPL is not active*/ 6541 6539 if(activeEpl[i]==0.0){ 6542 6540 wh_trans=0.0; 6543 continue;6544 }6545 6546 eplstoring[i]=matpar->GetEplStoring();6547 sedstoring[i]=matpar->GetSedimentStoring();6548 6549 if(sed_head[i]>epl_head[i]){6550 wh_trans=sed_trans*sedstoring[i]*(epl_head[i]-sed_head[i])/(leakage*sed_thick);6551 6541 } 6552 6542 else{ 6553 this->GetHydrologyDCInefficientHmax(&h_max,nodes[i]); 6554 wh_trans=sed_trans*eplstoring[i]*(epl_head[i]-sed_head[i])/(leakage*sed_thick); 6555 if(sed_head[i]>=h_max){ 6556 wh_trans=0.0; 6543 eplstoring[i]=matpar->GetEplStoring(); 6544 sedstoring[i]=matpar->GetSedimentStoring(); 6545 6546 /*EPL head higher than sediment head, transfer from the epl to the sediment*/ 6547 if(epl_head[i]>sed_head[i]){ 6548 wh_trans=eplstoring[i]*sed_trans*(epl_head[i]-sed_head[i])/(leakage*sed_thick); 6549 6550 /*No transfer if the sediment head is allready at the maximum*/ 6551 this->GetHydrologyDCInefficientHmax(&h_max,nodes[i]); 6552 if(sed_head[i]>=h_max)wh_trans=0.0; 6553 } 6554 /*EPL head lower than sediment head, transfer from the sediment to the epl*/ 6555 else if(epl_head[i]<sed_head[i]){ 6556 wh_trans=sedstoring[i]*sed_trans*(epl_head[i]-sed_head[i])/(leakage*sed_thick); 6557 6557 } 6558 6558 } … … 6635 6635 if(sedhead[j] == sedheadmin){ 6636 6636 vec_mask->SetValue(nodes[j]->Sid(),1.,INS_VAL); 6637 break;6637 // break; 6638 6638 } 6639 6639 }
Note:
See TracChangeset
for help on using the changeset viewer.