white space and style adjustments

This commit is contained in:
Martin Diehl 2023-01-18 18:50:01 +01:00
parent fa9feda3a4
commit 80943ec188
16 changed files with 23 additions and 21 deletions

View File

@ -406,7 +406,6 @@ subroutine phase_init
phases => config_material%get_dict('phase') phases => config_material%get_dict('phase')
allocate(phase_lattice(phases%length)) allocate(phase_lattice(phases%length))
allocate(phase_cOverA(phases%length),source=-1.0_pReal) allocate(phase_cOverA(phases%length),source=-1.0_pReal)
allocate(phase_rho(phases%length)) allocate(phase_rho(phases%length))
@ -549,8 +548,7 @@ subroutine crystallite_init()
type(tDict), pointer :: & type(tDict), pointer :: &
num_crystallite, & num_crystallite, &
phases phases
character(len=:), allocatable :: & character(len=:), allocatable :: extmsg
extmsg
num_crystallite => config_numerics%get_dict('crystallite',defaultVal=emptyDict) num_crystallite => config_numerics%get_dict('crystallite',defaultVal=emptyDict)

View File

@ -84,10 +84,11 @@ module subroutine damage_init()
source source
logical:: damage_active logical:: damage_active
print'(/,1x,a)', '<<<+- phase:damage init -+>>>' print'(/,1x,a)', '<<<+- phase:damage init -+>>>'
phases => config_material%get_dict('phase')
phases => config_material%get_dict('phase')
allocate(current(phases%length)) allocate(current(phases%length))
allocate(damageState(phases%length)) allocate(damageState(phases%length))
allocate(param(phases%length)) allocate(param(phases%length))

View File

@ -215,6 +215,7 @@ module subroutine mechanical_init(phases)
phase, & phase, &
mech mech
print'(/,1x,a)', '<<<+- phase:mechanical init -+>>>' print'(/,1x,a)', '<<<+- phase:mechanical init -+>>>'
!------------------------------------------------------------------------------------------------- !-------------------------------------------------------------------------------------------------

View File

@ -45,8 +45,10 @@ module subroutine eigen_init(phases)
type(tList), pointer :: & type(tList), pointer :: &
kinematics kinematics
print'(/,1x,a)', '<<<+- phase:mechanical:eigen init -+>>>' print'(/,1x,a)', '<<<+- phase:mechanical:eigen init -+>>>'
!-------------------------------------------------------------------------------------------------- !--------------------------------------------------------------------------------------------------
! explicit eigen mechanisms ! explicit eigen mechanisms
allocate(Nmodels(phases%length),source = 0) allocate(Nmodels(phases%length),source = 0)

View File

@ -36,13 +36,14 @@ module function thermalexpansion_init(kinematics_length) result(myKinematics)
mech mech
print'(/,1x,a)', '<<<+- phase:mechanical:eigen:thermalexpansion init -+>>>'
myKinematics = kinematics_active('thermalexpansion',kinematics_length) myKinematics = kinematics_active('thermalexpansion',kinematics_length)
Ninstances = count(myKinematics) Ninstances = count(myKinematics)
print'(/,a,i2)', ' # phases: ',Ninstances; flush(IO_STDOUT) print'(/,a,i2)', ' # phases: ',Ninstances; flush(IO_STDOUT)
if (Ninstances == 0) return if (Ninstances == 0) return
print'(/,1x,a)', '<<<+- phase:mechanical:eigen:thermalexpansion init -+>>>'
phases => config_material%get_dict('phase') phases => config_material%get_dict('phase')
allocate(param(Ninstances)) allocate(param(Ninstances))
allocate(kinematics_thermal_expansion_instance(phases%length), source=0) allocate(kinematics_thermal_expansion_instance(phases%length), source=0)

View File

@ -35,6 +35,7 @@ module subroutine elastic_init(phases)
print'(/,a,i0)', ' # phases: ',phases%length; flush(IO_STDOUT) print'(/,a,i0)', ' # phases: ',phases%length; flush(IO_STDOUT)
allocate(param(phases%length)) allocate(param(phases%length))
do ph = 1, phases%length do ph = 1, phases%length

View File

@ -93,8 +93,7 @@ module function plastic_dislotungsten_init() result(myPlasticity)
rho_mob_0, & !< initial dislocation density rho_mob_0, & !< initial dislocation density
rho_dip_0, & !< initial dipole density rho_dip_0, & !< initial dipole density
a !< non-Schmid coefficients a !< non-Schmid coefficients
character(len=:), allocatable :: & character(len=:), allocatable :: extmsg
extmsg
type(tDict), pointer :: & type(tDict), pointer :: &
phases, & phases, &
phase, & phase, &
@ -111,6 +110,7 @@ module function plastic_dislotungsten_init() result(myPlasticity)
print'(/,1x,a)', 'D. Cereceda et al., International Journal of Plasticity 78:242256, 2016' print'(/,1x,a)', 'D. Cereceda et al., International Journal of Plasticity 78:242256, 2016'
print'( 1x,a)', 'https://doi.org/10.1016/j.ijplas.2015.09.002' print'( 1x,a)', 'https://doi.org/10.1016/j.ijplas.2015.09.002'
phases => config_material%get_dict('phase') phases => config_material%get_dict('phase')
allocate(param(phases%length)) allocate(param(phases%length))
allocate(indexDotState(phases%length)) allocate(indexDotState(phases%length))

View File

@ -140,8 +140,7 @@ module function plastic_dislotwin_init() result(myPlasticity)
real(pReal), allocatable, dimension(:) :: & real(pReal), allocatable, dimension(:) :: &
rho_mob_0, & !< initial unipolar dislocation density per slip system rho_mob_0, & !< initial unipolar dislocation density per slip system
rho_dip_0 !< initial dipole dislocation density per slip system rho_dip_0 !< initial dipole dislocation density per slip system
character(len=:), allocatable :: & character(len=:), allocatable :: extmsg
extmsg
type(tDict), pointer :: & type(tDict), pointer :: &
phases, & phases, &
phase, & phase, &

View File

@ -54,8 +54,7 @@ module function plastic_isotropic_init() result(myPlasticity)
sizeState, sizeDotState sizeState, sizeDotState
real(pReal) :: & real(pReal) :: &
xi_0 !< initial critical stress xi_0 !< initial critical stress
character(len=:), allocatable :: & character(len=:), allocatable :: extmsg
extmsg
type(tDict), pointer :: & type(tDict), pointer :: &
phases, & phases, &
phase, & phase, &
@ -72,6 +71,7 @@ module function plastic_isotropic_init() result(myPlasticity)
print'(/,1x,a)', 'T. Maiti and P. Eisenlohr, Scripta Materialia 145:3740, 2018' print'(/,1x,a)', 'T. Maiti and P. Eisenlohr, Scripta Materialia 145:3740, 2018'
print'( 1x,a)', 'https://doi.org/10.1016/j.scriptamat.2017.09.047' print'( 1x,a)', 'https://doi.org/10.1016/j.scriptamat.2017.09.047'
phases => config_material%get_dict('phase') phases => config_material%get_dict('phase')
allocate(param(phases%length)) allocate(param(phases%length))
allocate(state(phases%length)) allocate(state(phases%length))

View File

@ -77,8 +77,7 @@ module function plastic_kinehardening_init() result(myPlasticity)
real(pReal), dimension(:), allocatable :: & real(pReal), dimension(:), allocatable :: &
xi_0, & !< initial resistance against plastic flow xi_0, & !< initial resistance against plastic flow
a !< non-Schmid coefficients a !< non-Schmid coefficients
character(len=:), allocatable :: & character(len=:), allocatable :: extmsg
extmsg
type(tDict), pointer :: & type(tDict), pointer :: &
phases, & phases, &
phase, & phase, &
@ -94,6 +93,7 @@ module function plastic_kinehardening_init() result(myPlasticity)
print'(/,1x,a)', 'J.A. Wollmershauser et al., International Journal of Fatigue 36:181193, 2012' print'(/,1x,a)', 'J.A. Wollmershauser et al., International Journal of Fatigue 36:181193, 2012'
print'( 1x,a)', 'https://doi.org/10.1016/j.ijfatigue.2011.07.008' print'( 1x,a)', 'https://doi.org/10.1016/j.ijfatigue.2011.07.008'
phases => config_material%get_dict('phase') phases => config_material%get_dict('phase')
allocate(param(phases%length)) allocate(param(phases%length))
allocate(indexDotState(phases%length)) allocate(indexDotState(phases%length))

View File

@ -27,6 +27,7 @@ module function plastic_none_init() result(myPlasticity)
print'(/,1x,a)', '<<<+- phase:mechanical:plastic:none init -+>>>' print'(/,1x,a)', '<<<+- phase:mechanical:plastic:none init -+>>>'
print'(/,a,i0)', ' # phases: ',count(myPlasticity); flush(IO_STDOUT) print'(/,a,i0)', ' # phases: ',count(myPlasticity); flush(IO_STDOUT)
phases => config_material%get_dict('phase') phases => config_material%get_dict('phase')
do ph = 1, phases%length do ph = 1, phases%length
if (.not. myPlasticity(ph)) cycle if (.not. myPlasticity(ph)) cycle

View File

@ -188,8 +188,7 @@ module function plastic_nonlocal_init() result(myPlasticity)
s, t, l s, t, l
real(pReal), dimension(:), allocatable :: & real(pReal), dimension(:), allocatable :: &
a a
character(len=:), allocatable :: & character(len=:), allocatable :: extmsg
extmsg
type(tInitialParameters) :: & type(tInitialParameters) :: &
ini ini
type(tDict), pointer :: & type(tDict), pointer :: &
@ -216,9 +215,7 @@ module function plastic_nonlocal_init() result(myPlasticity)
phases => config_material%get_dict('phase') phases => config_material%get_dict('phase')
allocate(geom(phases%length)) allocate(geom(phases%length))
allocate(param(phases%length)) allocate(param(phases%length))
allocate(state(phases%length)) allocate(state(phases%length))
allocate(state0(phases%length)) allocate(state0(phases%length))

View File

@ -90,8 +90,7 @@ module function plastic_phenopowerlaw_init() result(myPlasticity)
xi_0_sl, & !< initial critical shear stress for slip xi_0_sl, & !< initial critical shear stress for slip
xi_0_tw, & !< initial critical shear stress for twin xi_0_tw, & !< initial critical shear stress for twin
a !< non-Schmid coefficients a !< non-Schmid coefficients
character(len=:), allocatable :: & character(len=:), allocatable :: extmsg
extmsg
type(tDict), pointer :: & type(tDict), pointer :: &
phases, & phases, &
phase, & phase, &

View File

@ -92,8 +92,8 @@ module subroutine thermal_init(phases)
print'(/,1x,a)', '<<<+- phase:thermal init -+>>>' print'(/,1x,a)', '<<<+- phase:thermal init -+>>>'
allocate(current(phases%length))
allocate(current(phases%length))
allocate(thermalState(phases%length)) allocate(thermalState(phases%length))
allocate(thermal_Nsources(phases%length),source = 0) allocate(thermal_Nsources(phases%length),source = 0)
allocate(param(phases%length)) allocate(param(phases%length))

View File

@ -38,6 +38,7 @@ module function dissipation_init(source_length) result(mySources)
mySources = thermal_active('dissipation',source_length) mySources = thermal_active('dissipation',source_length)
if (count(mySources) == 0) return if (count(mySources) == 0) return
print'(/,1x,a)', '<<<+- phase:thermal:dissipation init -+>>>' print'(/,1x,a)', '<<<+- phase:thermal:dissipation init -+>>>'
print'(/,a,i2)', ' # phases: ',count(mySources); flush(IO_STDOUT) print'(/,a,i2)', ' # phases: ',count(mySources); flush(IO_STDOUT)

View File

@ -41,6 +41,7 @@ module function externalheat_init(source_length) result(mySources)
mySources = thermal_active('externalheat',source_length) mySources = thermal_active('externalheat',source_length)
if (count(mySources) == 0) return if (count(mySources) == 0) return
print'(/,1x,a)', '<<<+- phase:thermal:externalheat init -+>>>' print'(/,1x,a)', '<<<+- phase:thermal:externalheat init -+>>>'
print'(/,a,i2)', ' # phases: ',count(mySources); flush(IO_STDOUT) print'(/,a,i2)', ' # phases: ',count(mySources); flush(IO_STDOUT)