You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
!* update current residuum and check for convergence of loop
482
484
atol_Lp =max(num%rtol_Lp *max(norm2(Lpguess),norm2(Lp_constitutive)), & ! absolute tolerance from largest acceptable relative error
483
485
num%atol_Lp) ! minimum lower cutoff
484
486
residuumLp = Lpguess - Lp_constitutive
485
487
486
488
if (any(IEEE_is_NaN(residuumLp))) then
487
-
return! error
489
+
status = STATUS_FAIL_PHASE_MECHANICAL_STRESS_LP_NAN
490
+
return
488
491
elseif (norm2(residuumLp) < atol_Lp) then! converged if below absolute tolerance
489
492
exit LpLoop
490
-
elseif (NiterationStressLp == 1.or.norm2(residuumLp) < norm2(residuumLp_old)) then! not converged, but improved norm of residuum (always proceed in first iteration)...
493
+
elseif (norm2(residuumLp) < norm2(residuumLp_old)) then! not converged, but improved norm of residuum...
491
494
residuumLp_old = residuumLp ! ...remember old values and...
492
495
Lpguess_old = Lpguess
493
496
steplengthLp =1.0_pREAL! ...proceed with normal step length (calculate new search direction)
@@ -508,7 +511,10 @@ function integrateStress(F,Fp0,Fi0,Delta_t,ph,en) result(status)
status = STATUS_FAIL_PHASE_MECHANICAL_STRESS_LP_DGESV
516
+
return
517
+
end if
512
518
deltaLp =- math_9to33(temp_9)
513
519
end if calculateJacobiLp
514
520
@@ -527,7 +533,7 @@ function integrateStress(F,Fp0,Fi0,Delta_t,ph,en) result(status)
527
533
return! error
528
534
elseif (norm2(residuumLi) < atol_Li) then! converged if below absolute tolerance
529
535
exit LiLoop
530
-
elseif (NiterationStressLi == 1.or.norm2(residuumLi) < norm2(residuumLi_old)) then! not converged, but improved norm of residuum (always proceed in first iteration)...
536
+
elseif (norm2(residuumLi) < norm2(residuumLi_old)) then! not converged, but improved norm of residuum ...
531
537
residuumLi_old = residuumLi ! ...remember old values and...
532
538
Liguess_old = Liguess
533
539
steplengthLi =1.0_pREAL! ...proceed with normal step length (calculate new search direction)
0 commit comments