Skip to content

Commit 7529cf1

Browse files
committed
Merge branch 'fix_status_allocation' into 'development'
fix status allocation when mechanics only fails See merge request damask/DAMASK!930
2 parents 57f88a3 + 05c40bf commit 7529cf1

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/homogenization.f90

+4-2
Original file line numberDiff line numberDiff line change
@@ -257,8 +257,10 @@ subroutine homogenization_mechanical_response(status,Delta_t,cell_start,cell_end
257257
converged = converged .and. all([(phase_damage_constitutive(Delta_t,co,ce)==STATUS_OK,co=1,homogenization_Nconstituents(ho))])
258258

259259
if (.not. converged) then
260-
if (status == STATUS_OK) print*, ' Cell ', ce, ' failed (damage)'
261-
status = STATUS_FAIL_PHASE_DAMAGE
260+
if (status == STATUS_OK) then
261+
print*, ' Cell ', ce, ' failed (damage)'
262+
status = STATUS_FAIL_PHASE_DAMAGE
263+
end if
262264
end if
263265
end do
264266
!$OMP END PARALLEL DO

0 commit comments

Comments
 (0)