Skip to content

Commit

Permalink
Merge branch 'fix_status_allocation' into 'development'
Browse files Browse the repository at this point in the history
fix status allocation when mechanics only fails

See merge request damask/DAMASK!930
  • Loading branch information
sharanroongta committed Apr 9, 2024
2 parents 57f88a3 + 05c40bf commit 7529cf1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/homogenization.f90
Original file line number Diff line number Diff line change
Expand Up @@ -257,8 +257,10 @@ subroutine homogenization_mechanical_response(status,Delta_t,cell_start,cell_end
converged = converged .and. all([(phase_damage_constitutive(Delta_t,co,ce)==STATUS_OK,co=1,homogenization_Nconstituents(ho))])

if (.not. converged) then
if (status == STATUS_OK) print*, ' Cell ', ce, ' failed (damage)'
status = STATUS_FAIL_PHASE_DAMAGE
if (status == STATUS_OK) then
print*, ' Cell ', ce, ' failed (damage)'
status = STATUS_FAIL_PHASE_DAMAGE
end if
end if
end do
!$OMP END PARALLEL DO
Expand Down

0 comments on commit 7529cf1

Please sign in to comment.