Changeset 24680


Ignore:
Timestamp:
04/01/20 09:40:15 (5 years ago)
Author:
Mathieu Morlighem
Message:

BUG: problem with rifts activating penalties, they need to reallocate every time

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/solutionsequences/solutionsequence_nonlinear.cpp

    r24679 r24680  
    5454        Reducevectorgtofx(&uf, ug, femmodel->nodes,femmodel->parameters);
    5555
    56         //Update once again the solution to make sure that vx and vxold are similar (for next step in transient or steadystate)
     56        /*Update once again the solution to make sure that vx and vxold are similar (for next step in transient or steadystate)*/
    5757        InputUpdateFromConstantx(femmodel,converged,ConvergedEnum);
    5858        InputUpdateFromSolutionx(femmodel,ug);
    5959
    60         // allocate the matrices once and reuce them per iteration
    61         AllocateSystemMatricesx(&Kff,&Kfs,&df,&pf,femmodel);
     60        /*allocate the matrices once and reuse them per iteration*/
     61        if(femmodel->loads->numrifts == 0){
     62                AllocateSystemMatricesx(&Kff,&Kfs,&df,&pf,femmodel);
     63        }
    6264
    6365        for(;;){
     
    6769                delete ug;
    6870
     71                if(femmodel->loads->numrifts){
     72                        AllocateSystemMatricesx(&Kff,&Kfs,&df,&pf,femmodel);
     73                }
    6974                SystemMatricesx(&Kff,&Kfs,&pf,&df,NULL,femmodel, true);
    7075                CreateNodalConstraintsx(&ys,femmodel->nodes);
Note: See TracChangeset for help on using the changeset viewer.