Changeset 17362
- Timestamp:
- 02/27/14 11:33:11 (11 years ago)
- Location:
- issm/trunk-jpl/src/c
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/analyses/HydrologyDCEfficientAnalysis.cpp
r17361 r17362 109 109 110 110 /*Intermediaries*/ 111 bool active_element; 111 112 int meshtype; 112 113 Element* basalelement; … … 125 126 } 126 127 128 Input* active_element_input = basalelement->GetInput(HydrologydcMaskEplactiveEltEnum); _assert_(active_element_input); 129 active_element_input->GetInputValue(&active_element); 130 127 131 /*Check that all nodes are active, else return empty matrix*/ 128 if(! basalelement->AllActive()) { /*This could probably replaced by active elt mask*/132 if(!active_element) { 129 133 if(meshtype!=Mesh2DhorizontalEnum){ 130 134 basalelement->DeleteMaterials(); … … 204 208 205 209 /*Intermediaries*/ 210 bool active_element; 206 211 int meshtype; 207 212 Element* basalelement; … … 219 224 default: _error_("mesh "<<EnumToStringx(meshtype)<<" not supported yet"); 220 225 } 226 227 Input* active_element_input = basalelement->GetInput(HydrologydcMaskEplactiveEltEnum); _assert_(active_element_input); 228 active_element_input->GetInputValue(&active_element); 229 221 230 /*Check that all nodes are active, else return empty matrix*/ 222 if(! basalelement->AllActive()) {231 if(!active_element) { 223 232 if(meshtype!=Mesh2DhorizontalEnum){ 224 233 basalelement->DeleteMaterials(); -
issm/trunk-jpl/src/c/analyses/L2ProjectionEPLAnalysis.cpp
r17212 r17362 86 86 bool active_element; 87 87 Element* basalelement; 88 Input* active_element_input=NULL;89 88 90 89 /*Get basal element*/ … … 105 104 } 106 105 107 /* active_element_input=basalelement->GetInput(HydrologydcMaskEplactiveEltEnum); _assert_(active_element_input); */108 /* active_element_input->GetInputValue(&active_element); */106 Input* active_element_input=basalelement->GetInput(HydrologydcMaskEplactiveEltEnum); _assert_(active_element_input); 107 active_element_input->GetInputValue(&active_element); 109 108 110 109 /* Check that all nodes are active, else return empty matrix */ 111 if(!basalelement->AllActive()) { 112 // if(!active_element){ 113 if(meshtype!=Mesh2DhorizontalEnum){ 110 if(!active_element){ 111 if(meshtype!=Mesh2DhorizontalEnum){ 114 112 basalelement->DeleteMaterials(); 115 113 delete basalelement; … … 160 158 bool active_element; 161 159 Element* basalelement; 162 Input* active_element_input=NULL;163 160 164 161 /*Get basal element*/ … … 175 172 } 176 173 177 /* active_element_input=basalelement->GetInput(HydrologydcMaskEplactiveEltEnum); _assert_(active_element_input); */178 /* active_element_input->GetInputValue(&active_element); */174 Input* active_element_input = basalelement->GetInput(HydrologydcMaskEplactiveEltEnum); _assert_(active_element_input); 175 active_element_input->GetInputValue(&active_element); 179 176 180 177 /*Check that all nodes are active, else return empty matrix*/ 181 if(!basalelement->AllActive()) { 182 /* if(!active_element){ */ 178 if(!active_element) { 183 179 if(meshtype!=Mesh2DhorizontalEnum){ 184 180 basalelement->DeleteMaterials(); -
issm/trunk-jpl/src/c/classes/Elements/Element.cpp
r17353 r17362 37 37 this->inputs->AddInput(input_in); 38 38 }/*}}}*/ 39 bool Element::AllActive(void){/*{{{*/40 41 int numnodes = this->GetNumberOfNodes(); 42 for(int i=0;i<numnodes;i++){ 43 if(!this->nodes[i]->IsActive()) return false; 44 } 45 return true; 46 }/*}}}*/47 bool Element::AnyActive(void){/*{{{*/48 49 int numnodes = this->GetNumberOfNodes(); 50 for(int i=0;i<numnodes;i++){ 51 if(this->nodes[i]->IsActive()) return true; 52 } 53 return false; 54 }/*}}}*/39 /* bool Element::AllActive(void){/\*{{{*\/ */ 40 41 /* int numnodes = this->GetNumberOfNodes(); */ 42 /* for(int i=0;i<numnodes;i++){ */ 43 /* if(!this->nodes[i]->IsActive()) return false; */ 44 /* } */ 45 /* return true; */ 46 /* }/\*}}}*\/ */ 47 /* bool Element::AnyActive(void){/\*{{{*\/ */ 48 49 /* int numnodes = this->GetNumberOfNodes(); */ 50 /* for(int i=0;i<numnodes;i++){ */ 51 /* if(this->nodes[i]->IsActive()) return true; */ 52 /* } */ 53 /* return false; */ 54 /* }/\*}}}*\/ */ 55 55 void Element::CoordinateSystemTransform(IssmDouble** ptransform,Node** nodes_list,int numnodes,int* cs_array){/*{{{*/ 56 56 -
issm/trunk-jpl/src/c/classes/Elements/Element.h
r17361 r17362 52 52 /*Functions*/ 53 53 void AddInput(Input* input_in); 54 bool AllActive(void);55 bool AnyActive(void);54 /* bool AllActive(void); */ 55 /* bool AnyActive(void); */ 56 56 void CoordinateSystemTransform(IssmDouble** ptransform,Node** nodes,int numnodes,int* cs_array); 57 57 void DeleteMaterials(void); -
issm/trunk-jpl/src/c/solutionsequences/solutionsequence_hydro_nonlinear.cpp
r17361 r17362 117 117 if(num_unstable_constraints==0) sedconverged = true; 118 118 if (sedcount>=hydro_maxiter){ 119 //sedconverged = true;120 119 _error_(" maximum number of Sediment iterations (" << hydro_maxiter << ") exceeded"); 121 120 } … … 174 173 /* {{{ *//*Retrieve the EPL head slopes and compute EPL Thickness*/ 175 174 if(VerboseSolution()) _printf0_("computing EPL Head slope...\n"); 175 inefanalysis->ElementizeEplMask(femmodel); 176 176 femmodel->SetCurrentConfiguration(L2ProjectionEPLAnalysisEnum); 177 177 femmodel->UpdateConstraintsL2ProjectionEPLx();
Note:
See TracChangeset
for help on using the changeset viewer.