write out the complete list of elements of a given level
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dyn_longarray_type), | intent(in) | :: | me | |||
integer, | intent(in) | :: | nUnit | |||
character(len=*), | intent(in) | :: | string |
subroutine tem_require_dump( me, nUnit, string )
! ---------------------------------------------------------------------------
type( dyn_longArray_type ), intent(in) :: me
integer, intent(in) :: nUnit
character(len=*), intent(in) :: string
! ---------------------------------------------------------------------------
integer :: iElem
integer :: nEntries, iLoop, iEntry
character(len=pathLen) :: buffer
! ---------------------------------------------------------------------------
nEntries = 15
write(nUnit, *) '========================================================='
write(nUnit, *) '== REQUIRE ', trim(string)
write(nUnit, *) '========================================================='
iElem = 0
do iLoop = 1, ceiling( real(me%nVals)/real(nEntries) )
buffer = ''
do iEntry = 1, nEntries
iElem = iElem + 1
if( iElem .ge. me%nVals ) exit
write(buffer, '(a, i10)') trim(buffer), me%val( iElem )
end do
write(nUnit,*) trim(buffer)
if( iElem .ge. me%nVals ) exit
end do
write(nUnit, *) '== DONE ', trim(string)
write(nUnit, *) '========================================================='
end subroutine tem_require_dump