Changeset 17619
- Timestamp:
- 04/01/14 13:28:22 (11 years ago)
- Location:
- issm/trunk-jpl/src/c
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/classes/Materials/Matice.cpp
r17281 r17619 249 249 if(eps_eff==0.){ 250 250 viscosity = 1.e+14/2.; 251 //viscosity = B; 251 252 //viscosity=2.5*pow(10.,17); 252 253 } -
issm/trunk-jpl/src/c/solutionsequences/solutionsequence_la_theta.cpp
r17603 r17619 19 19 Vector<IssmDouble>* df = NULL; 20 20 Vector<IssmDouble>* ys = NULL; 21 int configuration_type ;21 int configuration_type,max_nonlinear_iterations; 22 22 23 23 /*Create analysis*/ … … 26 26 /*Recover parameters: */ 27 27 femmodel->parameters->FindParam(&configuration_type,ConfigurationTypeEnum); 28 femmodel->parameters->FindParam(&max_nonlinear_iterations,StressbalanceMaxiterEnum); 28 29 29 30 /*Update constraints and initialize d and tau if necessary*/ … … 34 35 int count = 0; 35 36 IssmDouble eps_rel = .001; 36 femmodel->parameters->SetParam( 0.6,AugmentedLagrangianREnum);37 femmodel->parameters->SetParam(.6,AugmentedLagrangianREnum); 37 38 GetSolutionFromInputsx(&ug,femmodel); 38 39 … … 46 47 CreateNodalConstraintsx(&ys,femmodel->nodes,configuration_type); 47 48 Reduceloadx(pf, Kfs, ys); delete Kfs; 49 50 // pf->Echo(); 51 // IssmDouble* temp=Kff->ToSerial(); 52 // int m,n; 53 // Kff->GetSize(&m,&n); 54 // printarray(temp,m,n); 55 // xDelete<IssmDouble>(temp); 56 48 57 Solverx(&uf, Kff, pf, NULL, df, femmodel->parameters); 58 //uf->Echo(); 49 59 delete Kff; delete pf; delete df; 60 50 61 Mergesolutionfromftogx(&ug, uf,ys,femmodel->nodes,femmodel->parameters);delete uf; delete ys; 51 62 … … 71 82 72 83 count++; 73 if(count> 20) break;84 if(count>=max_nonlinear_iterations) break; 74 85 } 75 86
Note:
See TracChangeset
for help on using the changeset viewer.