same names for same variables

This commit is contained in:
Martin Diehl 2020-03-02 15:49:14 +01:00
parent fed778974d
commit 9f8fbaa9f7
4 changed files with 56 additions and 63 deletions

View File

@ -37,16 +37,14 @@ contains
!--------------------------------------------------------------------------------------------------
subroutine damage_local_init
integer :: maxNinstance,NofMyHomog,h
integer :: Ninstance,NofMyHomog,h
write(6,'(/,a)') ' <<<+- damage_'//DAMAGE_local_label//' init -+>>>'; flush(6)
maxNinstance = count(damage_type == DAMAGE_local_ID)
if (maxNinstance == 0) return
Ninstance = count(damage_type == DAMAGE_local_ID)
allocate(param(Ninstance))
allocate(param(maxNinstance))
do h = 1, size(damage_type)
do h = 1, size(config_homogenization)
if (damage_type(h) /= DAMAGE_LOCAL_ID) cycle
associate(prm => param(damage_typeInstance(h)),config => config_homogenization(h))

View File

@ -42,16 +42,14 @@ contains
!--------------------------------------------------------------------------------------------------
subroutine damage_nonlocal_init
integer :: maxNinstance,NofMyHomog,h
integer :: Ninstance,NofMyHomog,h
write(6,'(/,a)') ' <<<+- damage_'//DAMAGE_nonlocal_label//' init -+>>>'; flush(6)
maxNinstance = count(damage_type == DAMAGE_nonlocal_ID)
if (maxNinstance == 0) return
Ninstance = count(damage_type == DAMAGE_nonlocal_ID)
allocate(param(Ninstance))
allocate(param(maxNinstance))
do h = 1, size(damage_type)
do h = 1, size(config_homogenization)
if (damage_type(h) /= DAMAGE_NONLOCAL_ID) cycle
associate(prm => param(damage_typeInstance(h)),config => config_homogenization(h))

View File

@ -41,17 +41,14 @@ contains
!--------------------------------------------------------------------------------------------------
subroutine thermal_conduction_init
integer :: maxNinstance,NofMyHomog,h
integer :: Ninstance,NofMyHomog,h
write(6,'(/,a)') ' <<<+- thermal_'//THERMAL_CONDUCTION_label//' init -+>>>'; flush(6)
maxNinstance = count(thermal_type == THERMAL_conduction_ID)
if (maxNinstance == 0) return
Ninstance = count(thermal_type == THERMAL_conduction_ID)
allocate(param(Ninstance))
allocate(param(maxNinstance))
do h = 1, size(thermal_type)
do h = 1, size(config_homogenization)
if (thermal_type(h) /= THERMAL_conduction_ID) cycle
associate(prm => param(thermal_typeInstance(h)),config => config_homogenization(h))