small changes regarding restart and HDF5
This commit is contained in:
parent
99fe2dfccd
commit
58ad750b2a
|
@ -536,6 +536,7 @@ program DAMASK_spectral_Driver
|
||||||
if (.not. cutBack) &
|
if (.not. cutBack) &
|
||||||
write(statUnit,*) totalIncsCounter, time, cutBackLevel, &
|
write(statUnit,*) totalIncsCounter, time, cutBackLevel, &
|
||||||
solres%converged, solres%iterationsNeeded ! write statistics about accepted solution
|
solres%converged, solres%iterationsNeeded ! write statistics about accepted solution
|
||||||
|
flush(statUnit)
|
||||||
enddo subIncLooping
|
enddo subIncLooping
|
||||||
cutBackLevel = max(0_pInt, cutBackLevel - 1_pInt) ! try half number of subincs next inc
|
cutBackLevel = max(0_pInt, cutBackLevel - 1_pInt) ! try half number of subincs next inc
|
||||||
if(solres%converged) then ! report converged inc
|
if(solres%converged) then ! report converged inc
|
||||||
|
@ -550,6 +551,7 @@ program DAMASK_spectral_Driver
|
||||||
if (mod(inc,loadCases(currentLoadCase)%outputFrequency) == 0_pInt) then ! at output frequency
|
if (mod(inc,loadCases(currentLoadCase)%outputFrequency) == 0_pInt) then ! at output frequency
|
||||||
write(6,'(1/,a)') ' ... writing results to file ......................................'
|
write(6,'(1/,a)') ' ... writing results to file ......................................'
|
||||||
write(resUnit) materialpoint_results ! write result to file
|
write(resUnit) materialpoint_results ! write result to file
|
||||||
|
flush(resUnit)
|
||||||
endif
|
endif
|
||||||
if( loadCases(currentLoadCase)%restartFrequency > 0_pInt .and. & ! at frequency of writing restart information set restart parameter for FEsolving
|
if( loadCases(currentLoadCase)%restartFrequency > 0_pInt .and. & ! at frequency of writing restart information set restart parameter for FEsolving
|
||||||
mod(inc,loadCases(currentLoadCase)%restartFrequency) == 0_pInt) then ! ToDo first call to CPFEM_general will write?
|
mod(inc,loadCases(currentLoadCase)%restartFrequency) == 0_pInt) then ! ToDo first call to CPFEM_general will write?
|
||||||
|
|
|
@ -154,6 +154,8 @@ subroutine constitutive_init
|
||||||
character(len=32) :: outputName !< name of output, intermediate fix until HDF5 output is ready
|
character(len=32) :: outputName !< name of output, intermediate fix until HDF5 output is ready
|
||||||
logical :: knownPlasticity, nonlocalConstitutionPresent
|
logical :: knownPlasticity, nonlocalConstitutionPresent
|
||||||
#ifdef HDF
|
#ifdef HDF
|
||||||
|
integer(pInt) :: &
|
||||||
|
phase !< phase
|
||||||
integer(pInt), dimension(:,:,:), allocatable :: mappingConstitutive
|
integer(pInt), dimension(:,:,:), allocatable :: mappingConstitutive
|
||||||
integer(pInt), dimension(:,:,:), allocatable :: mappingCrystallite
|
integer(pInt), dimension(:,:,:), allocatable :: mappingCrystallite
|
||||||
integer(pInt), dimension(:), allocatable :: ConstitutivePosition
|
integer(pInt), dimension(:), allocatable :: ConstitutivePosition
|
||||||
|
@ -265,8 +267,8 @@ subroutine constitutive_init
|
||||||
end select
|
end select
|
||||||
instance = phase_plasticityInstance(material_phase(g,i,e))
|
instance = phase_plasticityInstance(material_phase(g,i,e))
|
||||||
#ifdef HDF
|
#ifdef HDF
|
||||||
InstancePosition(instance) = InstancePosition(instance)+1_pInt
|
ConstitutivePosition(instance) = ConstitutivePosition(instance)+1_pInt
|
||||||
mapping(g,e,1:2) = [instancePosition(instance),instance]
|
mappingConstitutive(g,e,1:2) = [ConstitutivePosition(instance),instance]
|
||||||
#endif
|
#endif
|
||||||
select case(phase_plasticity(material_phase(g,i,e)))
|
select case(phase_plasticity(material_phase(g,i,e)))
|
||||||
case (PLASTICITY_NONE_ID)
|
case (PLASTICITY_NONE_ID)
|
||||||
|
@ -446,7 +448,7 @@ subroutine constitutive_init
|
||||||
endforall
|
endforall
|
||||||
enddo
|
enddo
|
||||||
#ifdef HDF
|
#ifdef HDF
|
||||||
call HDF5_mappingConstitutive(mapping)
|
call HDF5_mappingConstitutive(mappingConstitutive)
|
||||||
#endif
|
#endif
|
||||||
!--------------------------------------------------------------------------------------------------
|
!--------------------------------------------------------------------------------------------------
|
||||||
! write out state size file
|
! write out state size file
|
||||||
|
|
Loading…
Reference in New Issue