adding prefixes to writing of datasets under groups
This commit is contained in:
parent
fa13e71493
commit
cd2fb9f417
|
@ -246,7 +246,7 @@ subroutine CPFEM_age()
|
||||||
implicit none
|
implicit none
|
||||||
|
|
||||||
integer(pInt) :: i, k, l, m, ph, homog, mySource
|
integer(pInt) :: i, k, l, m, ph, homog, mySource
|
||||||
character(len=32) :: rankStr, groupItem
|
character(len=32) :: rankStr, PlasticItem, HomogItem
|
||||||
integer(HID_T) :: fileHandle, groupPlastic, groupHomog
|
integer(HID_T) :: fileHandle, groupPlastic, groupHomog
|
||||||
integer :: hdferr
|
integer :: hdferr
|
||||||
integer(HSIZE_T) :: hdfsize
|
integer(HSIZE_T) :: hdfsize
|
||||||
|
@ -296,15 +296,17 @@ if (restartWrite) then
|
||||||
|
|
||||||
groupPlastic = HDF5_addGroup2(fileHandle,'PlasticPhases')
|
groupPlastic = HDF5_addGroup2(fileHandle,'PlasticPhases')
|
||||||
do ph = 1_pInt,size(phase_plasticity)
|
do ph = 1_pInt,size(phase_plasticity)
|
||||||
!write(groupItem,'(a1,i0)') ph
|
write(PlasticItem,*) ph,'_'
|
||||||
!write(6,*) groupItem
|
call HDF5_write(plasticState(ph)%state0,groupPlastic,trim(PlasticItem)//'convergedStateConst')
|
||||||
call HDF5_write(plasticState(ph)%state0,groupPlastic,'convergedStateConst')
|
|
||||||
enddo
|
enddo
|
||||||
call HDF5_closeGroup(groupPlastic)
|
call HDF5_closeGroup(groupPlastic)
|
||||||
|
|
||||||
groupHomog = HDF5_addGroup2(fileHandle,'material_Nhomogenization')
|
groupHomog = HDF5_addGroup2(fileHandle,'HomogStates')
|
||||||
do homog = 1_pInt, material_Nhomogenization
|
do homog = 1_pInt, material_Nhomogenization
|
||||||
call HDF5_write(homogState(homog)%state0,groupHomog,'convergedStateHomog')
|
write(6,*) homog, '-----', material_Nhomogenization, '++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++'
|
||||||
|
write(HomogItem,*) homog,'_'
|
||||||
|
write(6,*) HomogItem, '!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!'
|
||||||
|
call HDF5_write(homogState(homog)%state0,groupHomog,trim(HomogItem)//'convergedStateHomog')
|
||||||
enddo
|
enddo
|
||||||
call HDF5_closeGroup(groupHomog)
|
call HDF5_closeGroup(groupHomog)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue