Changeset 23215


Ignore:
Timestamp:
09/04/18 13:12:28 (7 years ago)
Author:
wester
Message:

CHG: Added SchurCG switch to control method

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

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/cores/adjointstressbalance_core.cpp

    r23031 r23215  
    3131        if(VerboseSolution()) _printf0_("   computing velocities\n");
    3232        femmodel->SetCurrentConfiguration(StressbalanceAnalysisEnum);
     33       
     34        bool is_schur_cg_solver = false;
     35        #ifdef _HAVE_PETSC_
     36        int solver_type;
     37        PetscOptionsDetermineSolverType(&solver_type);
     38
     39        if(solver_type==FSSolverEnum) is_schur_cg_solver = true;
     40        #endif
     41
    3342        if(isFS){
    3443                if (fe_FS==LATaylorHoodEnum || fe_FS==LACrouzeixRaviartEnum)
    3544                 solutionsequence_la(femmodel);
     45                else if(is_schur_cg_solver)
     46                 solutionsequence_schurcg(femmodel);
    3647                else
    3748                 solutionsequence_nonlinear(femmodel,conserve_loads);
  • issm/trunk-jpl/src/c/cores/stressbalance_core.cpp

    r23066 r23215  
    3737
    3838        if(VerboseSolution()) _printf0_("   computing new velocity\n");
    39 
    4039        /*Compute slopes if necessary */
    4140        if(isSIA || (isFS && domaintype==Domain2DverticalEnum)) surfaceslope_core(femmodel);
Note: See TracChangeset for help on using the changeset viewer.