source: issm/oecreview/Archive/21337-21723/ISSM-21488-21489.diff@ 21726

Last change on this file since 21726 was 21726, checked in by Mathieu Morlighem, 8 years ago

CHG added Archive/21337-21723

File size: 2.3 KB
RevLine 
[21726]1Index: ../trunk-jpl/src/c/analyses/HydrologyDCEfficientAnalysis.cpp
2===================================================================
3--- ../trunk-jpl/src/c/analyses/HydrologyDCEfficientAnalysis.cpp (revision 21488)
4+++ ../trunk-jpl/src/c/analyses/HydrologyDCEfficientAnalysis.cpp (revision 21489)
5@@ -673,7 +673,7 @@
6 vec_mask->SetValue(basalelement->nodes[i]->Sid(),0.,INS_VAL);
7 recurence->SetValue(basalelement->nodes[i]->Sid(),1.,INS_VAL);
8 }
9- /* If epl head gets under base elevation, close the layer */
10+ /* //If epl head gets under base elevation, close the layer */
11 /* else if(eplhead[i]<(base[i]-1.0e-8)){ */
12 /* vec_mask->SetValue(basalelement->nodes[i]->Sid(),0.,INS_VAL); */
13 /* recurence->SetValue(basalelement->nodes[i]->Sid(),1.,INS_VAL); */
14@@ -682,12 +682,12 @@
15 /*If node is now closed bring its thickness back to initial*/
16 if (old_active[i]==0.){
17 epl_thickness[i]=init_thick;
18- }
19- /*Activate if we have a residual from sediment*/
20- if(residual[i]>0.){
21- vec_mask->SetValue(basalelement->nodes[i]->Sid(),1.,INS_VAL);
22- if(old_active[i]==0.){
23- recurence->SetValue(basalelement->nodes[i]->Sid(),1.,INS_VAL);
24+ /*Activate if we have a residual from sediment*/
25+ if(residual[i]>0.){
26+ vec_mask->SetValue(basalelement->nodes[i]->Sid(),1.,INS_VAL);
27+ if(old_active[i]==0.){
28+ recurence->SetValue(basalelement->nodes[i]->Sid(),1.,INS_VAL);
29+ }
30 }
31 }
32 /*Increase of the efficient system is needed if the epl head reach the maximum value (sediment max value for now)*/
33@@ -702,7 +702,6 @@
34 }
35 }
36 }
37-
38 }
39 basalelement->AddInput(HydrologydcEplThicknessEnum,epl_thickness,basalelement->GetElementType());
40
41@@ -744,8 +743,8 @@
42 /* else{ */
43 /* epl_storing=storing; */
44 /* } */
45+ /* return epl_storing; */
46 return storing;
47- //return epl_storing;
48 }/*}}}*/
49
50 IssmDouble HydrologyDCEfficientAnalysis::EplTransmitivity(Element* element,Gauss* gauss, Input* epl_thick_input, Input* epl_head_input, Input* base_input){/*{{{*/
51@@ -760,7 +759,7 @@
52 water_sheet=max(0.0,(prestep_head-base_elev));
53
54 epl_transmitivity=epl_conductivity*epl_thickness;
55- /* epl_transmitivity=max(1.0e-6,(epl_conductivity*min(water_sheet,epl_thickness))); */
56+ //epl_transmitivity=max(1.0e-6,(epl_conductivity*min(water_sheet,epl_thickness)));
57 return epl_transmitivity;
58 }/*}}}*/
59
Note: See TracBrowser for help on using the repository browser.