DAMASK_EICMD/src/damage_none.f90

40 lines
1.3 KiB
Fortran
Raw Normal View History

!--------------------------------------------------------------------------------------------------
!> @author Pratheek Shanthraj, Max-Planck-Institut für Eisenforschung GmbH
!> @brief material subroutine for constant damage field
!--------------------------------------------------------------------------------------------------
module damage_none
2019-05-17 02:44:47 +05:30
use config
use material
2019-03-09 15:32:12 +05:30
implicit none
2020-01-27 02:20:43 +05:30
public
2020-03-02 20:19:14 +05:30
contains
!--------------------------------------------------------------------------------------------------
!> @brief allocates all neccessary fields, reads information from material configuration file
!--------------------------------------------------------------------------------------------------
2019-05-17 02:44:47 +05:30
subroutine damage_none_init
2019-12-21 15:25:11 +05:30
integer :: h,NofMyHomog
2019-03-09 15:32:12 +05:30
2020-01-27 02:20:43 +05:30
write(6,'(/,a)') ' <<<+- damage_'//DAMAGE_NONE_LABEL//' init -+>>>'; flush(6)
2019-03-09 15:32:12 +05:30
2019-12-21 15:25:11 +05:30
do h = 1, size(config_homogenization)
if (damage_type(h) /= DAMAGE_NONE_ID) cycle
NofMyHomog = count(material_homogenizationAt == h)
damageState(h)%sizeState = 0
allocate(damageState(h)%state0 (0,NofMyHomog))
allocate(damageState(h)%subState0(0,NofMyHomog))
allocate(damageState(h)%state (0,NofMyHomog))
2020-03-02 20:19:14 +05:30
2019-12-21 15:25:11 +05:30
deallocate(damage(h)%p)
allocate (damage(h)%p(1), source=damage_initialPhi(h))
2020-03-02 20:19:14 +05:30
2019-12-21 15:25:11 +05:30
enddo
end subroutine damage_none_init
end module damage_none