Merge branch 'almost-no-postResults' into only-use-rotation-class
This commit is contained in:
commit
78e96993df
|
@ -743,8 +743,7 @@ function crystallite_postResults(ipc, ip, el)
|
||||||
ipc !< grain index
|
ipc !< grain index
|
||||||
|
|
||||||
real(pReal), dimension(1+ &
|
real(pReal), dimension(1+ &
|
||||||
1+plasticState(material_phaseAt(ipc,el))%sizePostResults + &
|
1+sum(sourceState(material_phaseAt(ipc,el))%p(:)%sizePostResults)) :: &
|
||||||
sum(sourceState(material_phaseAt(ipc,el))%p(:)%sizePostResults)) :: &
|
|
||||||
crystallite_postResults
|
crystallite_postResults
|
||||||
integer :: &
|
integer :: &
|
||||||
c
|
c
|
||||||
|
@ -754,7 +753,7 @@ function crystallite_postResults(ipc, ip, el)
|
||||||
crystallite_postResults(1) = 0.0_pReal ! header-like information (length)
|
crystallite_postResults(1) = 0.0_pReal ! header-like information (length)
|
||||||
c = 1
|
c = 1
|
||||||
|
|
||||||
crystallite_postResults(c+1) = real(plasticState(material_phaseAt(ipc,el))%sizePostResults,pReal) ! size of constitutive results
|
crystallite_postResults(c+1) = real(sum(sourceState(material_phaseAt(ipc,el))%p(:)%sizePostResults),pReal) ! size of constitutive results
|
||||||
c = c + 1
|
c = c + 1
|
||||||
if (size(crystallite_postResults)-c > 0) &
|
if (size(crystallite_postResults)-c > 0) &
|
||||||
crystallite_postResults(c+1:size(crystallite_postResults)) = &
|
crystallite_postResults(c+1:size(crystallite_postResults)) = &
|
||||||
|
|
|
@ -255,8 +255,8 @@ subroutine homogenization_init
|
||||||
thermal_maxSizePostResults = 0
|
thermal_maxSizePostResults = 0
|
||||||
damage_maxSizePostResults = 0
|
damage_maxSizePostResults = 0
|
||||||
do p = 1,size(config_homogenization)
|
do p = 1,size(config_homogenization)
|
||||||
thermal_maxSizePostResults = max(thermal_maxSizePostResults, thermalState (p)%sizePostResults)
|
thermal_maxSizePostResults = max(thermal_maxSizePostResults, thermalState(p)%sizePostResults)
|
||||||
damage_maxSizePostResults = max(damage_maxSizePostResults ,damageState (p)%sizePostResults)
|
damage_maxSizePostResults = max(damage_maxSizePostResults, damageState (p)%sizePostResults)
|
||||||
enddo
|
enddo
|
||||||
|
|
||||||
materialpoint_sizeResults = 1 & ! grain count
|
materialpoint_sizeResults = 1 & ! grain count
|
||||||
|
@ -616,8 +616,8 @@ subroutine materialpoint_postResults
|
||||||
|
|
||||||
grainLooping :do g = 1,myNgrains
|
grainLooping :do g = 1,myNgrains
|
||||||
theSize = 1 + &
|
theSize = 1 + &
|
||||||
1 + plasticState (material_phaseAt(g,e))%sizePostResults + &
|
1 + &
|
||||||
sum(sourceState(material_phaseAt(g,e))%p(:)%sizePostResults)
|
sum(sourceState(material_phaseAt(g,e))%p(:)%sizePostResults)
|
||||||
materialpoint_results(thePos+1:thePos+theSize,i,e) = crystallite_postResults(g,i,e) ! tell crystallite results
|
materialpoint_results(thePos+1:thePos+theSize,i,e) = crystallite_postResults(g,i,e) ! tell crystallite results
|
||||||
thePos = thePos + theSize
|
thePos = thePos + theSize
|
||||||
enddo grainLooping
|
enddo grainLooping
|
||||||
|
|
|
@ -749,9 +749,6 @@ subroutine material_allocatePlasticState(phase,NofMyPhase,&
|
||||||
plasticState(phase)%sizeDotState = sizeDotState
|
plasticState(phase)%sizeDotState = sizeDotState
|
||||||
plasticState(phase)%sizeDeltaState = sizeDeltaState
|
plasticState(phase)%sizeDeltaState = sizeDeltaState
|
||||||
plasticState(phase)%offsetDeltaState = sizeState-sizeDeltaState ! deltaState occupies latter part of state by definition
|
plasticState(phase)%offsetDeltaState = sizeState-sizeDeltaState ! deltaState occupies latter part of state by definition
|
||||||
plasticState(phase)%Nslip = Nslip
|
|
||||||
plasticState(phase)%Ntwin = Ntwin
|
|
||||||
plasticState(phase)%Ntrans= Ntrans
|
|
||||||
|
|
||||||
allocate(plasticState(phase)%aTolState (sizeState), source=0.0_pReal)
|
allocate(plasticState(phase)%aTolState (sizeState), source=0.0_pReal)
|
||||||
allocate(plasticState(phase)%state0 (sizeState,NofMyPhase), source=0.0_pReal)
|
allocate(plasticState(phase)%state0 (sizeState,NofMyPhase), source=0.0_pReal)
|
||||||
|
|
|
@ -29,7 +29,6 @@ module plastic_nonlocal
|
||||||
|
|
||||||
character(len=64), dimension(:,:), allocatable :: &
|
character(len=64), dimension(:,:), allocatable :: &
|
||||||
plastic_nonlocal_output !< name of each post result output
|
plastic_nonlocal_output !< name of each post result output
|
||||||
|
|
||||||
|
|
||||||
! storage order of dislocation types
|
! storage order of dislocation types
|
||||||
integer, dimension(8), parameter :: &
|
integer, dimension(8), parameter :: &
|
||||||
|
|
|
@ -62,10 +62,6 @@ module prec
|
||||||
end type
|
end type
|
||||||
|
|
||||||
type, extends(tState), public :: tPlasticState
|
type, extends(tState), public :: tPlasticState
|
||||||
integer :: &
|
|
||||||
nSlip = 0, &
|
|
||||||
nTwin = 0, &
|
|
||||||
nTrans = 0
|
|
||||||
logical :: &
|
logical :: &
|
||||||
nonlocal = .false.
|
nonlocal = .false.
|
||||||
real(pReal), pointer, dimension(:,:) :: &
|
real(pReal), pointer, dimension(:,:) :: &
|
||||||
|
|
Loading…
Reference in New Issue