Changeset 17619


Ignore:
Timestamp:
04/01/14 13:28:22 (11 years ago)
Author:
Mathieu Morlighem
Message:

CHG: added initial guess when u=0 and number of non linear iterations from md.stressbalance

Location:
issm/trunk-jpl/src/c
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/classes/Materials/Matice.cpp

    r17281 r17619  
    249249                if(eps_eff==0.){
    250250                        viscosity = 1.e+14/2.;
     251                        //viscosity = B;
    251252                        //viscosity=2.5*pow(10.,17);
    252253                }
  • issm/trunk-jpl/src/c/solutionsequences/solutionsequence_la_theta.cpp

    r17603 r17619  
    1919        Vector<IssmDouble>*  df     = NULL;
    2020        Vector<IssmDouble>*  ys     = NULL;
    21         int  configuration_type;
     21        int  configuration_type,max_nonlinear_iterations;
    2222
    2323        /*Create analysis*/
     
    2626        /*Recover parameters: */
    2727        femmodel->parameters->FindParam(&configuration_type,ConfigurationTypeEnum);
     28        femmodel->parameters->FindParam(&max_nonlinear_iterations,StressbalanceMaxiterEnum);
    2829
    2930        /*Update constraints and initialize d and tau if necessary*/
     
    3435        int        count   = 0;
    3536        IssmDouble eps_rel = .001;
    36         femmodel->parameters->SetParam(0.6,AugmentedLagrangianREnum);
     37        femmodel->parameters->SetParam(.6,AugmentedLagrangianREnum);
    3738        GetSolutionFromInputsx(&ug,femmodel);
    3839
     
    4647                CreateNodalConstraintsx(&ys,femmodel->nodes,configuration_type);
    4748                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
    4857                Solverx(&uf, Kff, pf, NULL, df, femmodel->parameters);
     58                //uf->Echo();
    4959                delete Kff; delete pf; delete df;
     60
    5061                Mergesolutionfromftogx(&ug, uf,ys,femmodel->nodes,femmodel->parameters);delete uf; delete ys;
    5162
     
    7182
    7283                count++;
    73                 if(count>20) break;
     84                if(count>=max_nonlinear_iterations) break;
    7485        }
    7586
Note: See TracChangeset for help on using the changeset viewer.