Changeset 18726


Ignore:
Timestamp:
11/03/14 15:19:49 (10 years ago)
Author:
bdef
Message:

BUG: modification in solutionsequence flowpath

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

Legend:

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

    r18721 r18726  
    19141914        if(VerboseSolution()) _printf0_("   Number of active nodes L2 Projection: "<< counter <<"\n");
    19151915
     1916        /*+++++++this is done in the solution sequence+++++++++++++++*/
    19161917        /*Update dof indexings*/
    1917         this->UpdateConstraintsx();
    1918 }
    1919 /*}}}*/
     1918        //      this->UpdateConstraintsx();
     1919        /*++++++++++++++++++++++++++*/
     1920}
     1921/*}}}*/
  • issm/trunk-jpl/src/c/solutionsequences/solutionsequence_hydro_nonlinear.cpp

    r18725 r18726  
    9494                ResetConstraintsx(femmodel);
    9595
    96                 /* {{{ *//*Treating the sediment*/
     96                /*{{{*//*Treating the sediment*/
    9797                for(;;){
    9898                        sedconverged=false;
    9999                        uf_sed_sub_iter=uf_sed->Duplicate();_assert_(uf_sed_sub_iter);
    100100                        uf_sed->Copy(uf_sed_sub_iter);
    101                         /* {{{ *//*Loop on the sediment layer to deal with the penalization*/
     101                        /*{{{*//*Loop on the sediment layer to deal with the penalization*/
    102102                        for(;;){
    103                                 /* {{{ *//*Core of the computation*/
     103                                /*{{{*/ /*Core of the computation*/
    104104                                if(VerboseSolution()) _printf0_("Building Sediment Matrix...\n");
    105105                                SystemMatricesx(&Kff,&Kfs,&pf,&df,&sediment_kmax,femmodel);
     
    113113                                InputUpdateFromSolutionx(femmodel,ug_sed);
    114114                                ConstraintsStatex(&constraints_converged,&num_unstable_constraints,femmodel);
    115                                 /* }}} */
     115                                /*}}}*/
    116116                                if (!sedconverged){
    117117                                        if(VerboseConvergence()) _printf0_("   # Sediment unstable constraints = " << num_unstable_constraints << "\n");
     
    126126                        }
    127127               
    128                         /* }}} *//*End of the sediment penalization loop*/
     128                        /*}}}*//*End of the sediment penalization loop*/
    129129                        /*Update EPL mask*/
    130                         if(isefficientlayer){
    131                                 inefanalysis->ElementizeEplMask(femmodel);
    132                         }
     130                       
     131                        /*++++++This is probably useless+++++++*/
     132                        /* if(isefficientlayer){ */
     133                        /*      inefanalysis->ElementizeEplMask(femmodel); */
     134                        /* } */
     135                        /*+++++++++++++*/
     136
    133137                        sedconverged=false;
    134138                       
     
    156160                        }
    157161                }
    158                 /* }}} *//*End of the global sediment loop*/
    159                 /* {{{ *//*Now dealing with the EPL in the same way*/
     162                /*}}}*//*End of the global sediment loop*/
     163                /*{{{*//*Now dealing with the EPL in the same way*/
    160164                if(isefficientlayer){
    161165                        femmodel->SetCurrentConfiguration(HydrologyDCEfficientAnalysisEnum);
    162166                        /*updating mask*/
    163167                        femmodel->HydrologyEPLupdateDomainx();
     168                        inefanalysis->ElementizeEplMask(femmodel);
    164169                        InputUpdateFromConstantx(femmodel,true,ResetPenaltiesEnum);
    165170                        InputUpdateFromConstantx(femmodel,false,ConvergedEnum);
     
    170175                                ug_epl_sub_iter=ug_epl->Duplicate();_assert_(ug_epl_sub_iter);
    171176                                ug_epl->Copy(ug_epl_sub_iter);
    172                                 /* {{{ *//*Retrieve the EPL head slopes and compute EPL Thickness*/
     177                                /*{{{*//*Retrieve the EPL head slopes and compute EPL Thickness*/
    173178                                if(VerboseSolution()) _printf0_("computing EPL Head slope...\n");
    174                                 inefanalysis->ElementizeEplMask(femmodel);
     179                                //                              inefanalysis->ElementizeEplMask(femmodel);
    175180                                femmodel->SetCurrentConfiguration(L2ProjectionEPLAnalysisEnum);
    176181                                femmodel->UpdateConstraintsL2ProjectionEPLx();
     
    180185                                femmodel->parameters->SetParam(EplHeadSlopeYEnum,InputToL2ProjectEnum);
    181186                                solutionsequence_linear(femmodel);
     187
    182188                                femmodel->SetCurrentConfiguration(HydrologyDCEfficientAnalysisEnum);
    183 
    184189                                effanalysis->ComputeEPLThickness(femmodel);
    185 
    186190                                //updating mask after the computation of the epl thickness (Allow to close too thin EPL)
    187191                                femmodel->HydrologyEPLupdateDomainx();
    188192                                inefanalysis->ElementizeEplMask(femmodel);
    189                                 /* }}} */
     193                                /*}}}*/
    190194                                       
    191195                                if(VerboseSolution()) _printf0_("Building EPL Matrix...\n");
     
    229233                        }
    230234                }
    231                 /* }}} */ /*End of the global EPL loop*/
    232 
    233                 /* {{{ */ /*Now dealing with the convergence of the whole system*/
     235                /*}}}*/ /*End of the global EPL loop*/
     236
     237                /*{{{*/ /*Now dealing with the convergence of the whole system*/
    234238                if(!hydroconverged){
    235239                        //compute norm(du)/norm(u)
     
    271275                if(hydroconverged)break;
    272276        }
    273         /* }}} */
     277        /*}}}*/
    274278        if(isefficientlayer)InputUpdateFromSolutionx(femmodel,ug_epl);
    275279        femmodel->SetCurrentConfiguration(HydrologyDCInefficientAnalysisEnum);
Note: See TracChangeset for help on using the changeset viewer.