DAMASK_EICMD/src/homogenization_mech_none.f90

43 lines
1.6 KiB
Fortran
Raw Normal View History

!--------------------------------------------------------------------------------------------------
!> @author Franz Roters, Max-Planck-Institut für Eisenforschung GmbH
!> @author Philip Eisenlohr, Max-Planck-Institut für Eisenforschung GmbH
!> @author Martin Diehl, Max-Planck-Institut für Eisenforschung GmbH
2019-01-13 02:34:03 +05:30
!> @brief dummy homogenization homogenization scheme for 1 constituent per material point
!--------------------------------------------------------------------------------------------------
submodule(homogenization) homogenization_mech_none
contains
!--------------------------------------------------------------------------------------------------
2020-07-03 20:15:11 +05:30
!> @brief allocates all necessary fields, reads information from material configuration file
!--------------------------------------------------------------------------------------------------
2020-07-02 01:50:22 +05:30
module subroutine mech_none_init
2020-07-03 20:15:11 +05:30
2019-03-09 12:17:01 +05:30
integer :: &
Ninstance, &
h, &
NofMyHomog
2020-07-03 20:15:11 +05:30
2020-09-18 02:27:56 +05:30
print'(/,a)', ' <<<+- homogenization_mech_none init -+>>>'
2019-03-09 12:17:01 +05:30
Ninstance = count(homogenization_type == HOMOGENIZATION_NONE_ID)
2020-09-22 16:39:12 +05:30
print'(a,i2)', ' # instances: ',Ninstance; flush(IO_STDOUT)
2020-07-03 20:15:11 +05:30
2019-03-09 12:17:01 +05:30
do h = 1, size(homogenization_type)
2020-10-07 21:14:54 +05:30
if(homogenization_type(h) /= HOMOGENIZATION_NONE_ID) cycle
2020-07-03 20:15:11 +05:30
2020-10-24 16:15:21 +05:30
if(homogenization_Nconstituent(h) /= 1) &
2020-10-07 21:14:54 +05:30
call IO_error(211,ext_msg='N_constituents (mech_none)')
2019-03-10 15:32:32 +05:30
NofMyHomog = count(material_homogenizationAt == h)
2019-03-09 12:17:01 +05:30
homogState(h)%sizeState = 0
allocate(homogState(h)%state0 (0,NofMyHomog))
allocate(homogState(h)%subState0(0,NofMyHomog))
allocate(homogState(h)%state (0,NofMyHomog))
2020-07-03 20:15:11 +05:30
2019-03-09 12:17:01 +05:30
enddo
end subroutine mech_none_init
end submodule homogenization_mech_none