Skip to content
Snippets Groups Projects
Commit 5ff0173c authored by hun darith's avatar hun darith
Browse files

first push

parent c9c286b1
No related branches found
No related tags found
No related merge requests found
......@@ -859,7 +859,7 @@ void mlawPowerYieldHyper::predictorCorrector_nonAssociatedFlow(const STensor3& F
q1->getRefToDissipationActive() = true;
// plasticity
int ite = 0;
int maxite = 100; // maximal number of iters
int maxite = 1000; // maximal number of iters
//Msg::Error("plasticity occurs f = %e",f);
......@@ -919,9 +919,14 @@ void mlawPowerYieldHyper::predictorCorrector_nonAssociatedFlow(const STensor3& F
if(ite > maxite){
Msg::Error("No convergence for plastic correction in mlawPowerYieldHyper nonAssociatedFlow Maxwell iter = %d, f = %e!!",ite,f);
if(fabs(f)<100.*_tol)
break;
else
{
P(0,0) = P(1,1) = P(2,2) = sqrt(-1.);
return;
}
}
};
q1->_DgammaDt = Dgamma/this->getTimeStep();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment