Changeset 19009
- Timestamp:
- 01/15/15 18:06:35 (10 years ago)
- Location:
- issm/trunk-jpl/src/c
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/classes/FemModel.cpp
r18975 r19009 1871 1871 /*}}}*/ 1872 1872 #endif 1873 void FemModel::HydrologyEPLupdateDomainx( void){ /*{{{*/1873 void FemModel::HydrologyEPLupdateDomainx(IssmDouble* pEplcount){ /*{{{*/ 1874 1874 1875 1875 Vector<IssmDouble>* mask = NULL; … … 1933 1933 ISSM_MPI_Bcast(&sum_counter,1,ISSM_MPI_INT,0,IssmComm::GetComm()); 1934 1934 counter=sum_counter; 1935 *pEplcount = counter; 1935 1936 if(VerboseSolution()) _printf0_(" Number of active nodes in EPL layer: "<< counter <<"\n"); 1936 1937 … … 1940 1941 } 1941 1942 /*}}}*/ 1942 void FemModel::UpdateConstraintsL2ProjectionEPLx( void){ /*{{{*/1943 void FemModel::UpdateConstraintsL2ProjectionEPLx(IssmDouble* pL2count){ /*{{{*/ 1943 1944 1944 1945 Vector<IssmDouble>* active = NULL; … … 1978 1979 ISSM_MPI_Bcast(&sum_counter,1,ISSM_MPI_INT,0,IssmComm::GetComm()); 1979 1980 counter=sum_counter; 1981 *pL2count = counter; 1980 1982 if(VerboseSolution()) _printf0_(" Number of active nodes L2 Projection: "<< counter <<"\n"); 1981 1983 } -
issm/trunk-jpl/src/c/classes/FemModel.h
r18953 r19009 107 107 void UpdateConstraintsExtrudeFromBasex(); 108 108 void UpdateConstraintsExtrudeFromTopx(); 109 void HydrologyEPLupdateDomainx(void); 110 // void HydrologyEPLThicknessx(void); 111 void UpdateConstraintsL2ProjectionEPLx(void); 109 void HydrologyEPLupdateDomainx(IssmDouble* pEplcount); 110 void UpdateConstraintsL2ProjectionEPLx(IssmDouble* pL2count); 112 111 }; 113 112 -
issm/trunk-jpl/src/c/solutionsequences/solutionsequence_hydro_nonlinear.cpp
r18975 r19009 46 46 IssmDouble ndu_sed,nu_sed; 47 47 IssmDouble ndu_epl,nu_epl; 48 48 IssmDouble ThickCount,L2Count; 49 49 50 /*Recover parameters: */ 50 51 femmodel->SetCurrentConfiguration(HydrologyDCInefficientAnalysisEnum); … … 157 158 femmodel->SetCurrentConfiguration(HydrologyDCEfficientAnalysisEnum); 158 159 /*updating mask*/ 159 femmodel->HydrologyEPLupdateDomainx( );160 femmodel->HydrologyEPLupdateDomainx(&ThickCount); 160 161 inefanalysis->ElementizeEplMask(femmodel); 161 162 InputUpdateFromConstantx(femmodel,true,ResetPenaltiesEnum); … … 169 170 /*{{{*//*Retrieve the EPL head slopes and compute EPL Thickness*/ 170 171 if(VerboseSolution()) _printf0_("computing EPL Head slope...\n"); 171 // 172 //inefanalysis->ElementizeEplMask(femmodel); 172 173 femmodel->SetCurrentConfiguration(L2ProjectionEPLAnalysisEnum); 173 femmodel->UpdateConstraintsL2ProjectionEPLx( );174 femmodel->UpdateConstraintsL2ProjectionEPLx(&L2Count); 174 175 inefanalysis->ElementizeEplMask(femmodel); 175 176 femmodel->parameters->SetParam(EplHeadSlopeXEnum,InputToL2ProjectEnum); … … 181 182 effanalysis->ComputeEPLThickness(femmodel); 182 183 //updating mask after the computation of the epl thickness (Allow to close too thin EPL) 183 femmodel->HydrologyEPLupdateDomainx( );184 femmodel->HydrologyEPLupdateDomainx(&ThickCount); 184 185 inefanalysis->ElementizeEplMask(femmodel); 185 186 /*}}}*/ … … 213 214 _error_(" maximum number of EPL iterations (" << hydro_maxiter << ") exceeded"); 214 215 } 216 //If there is some colapse go through sediment again 217 if(ThickCount<L2Count)eplconverged=true; 215 218 eplcount++; 216 219
Note:
See TracChangeset
for help on using the changeset viewer.