Write element information to disk
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(tem_stencilHeader_type), | intent(in) | :: | me |
stencil header to be dumped |
||
integer, | intent(in), | optional | :: | nUnit |
subroutine tem_stencilHeader_dump( me, nUnit )
! -------------------------------------------------------------------- !
!> stencil header to be dumped
type( tem_stencilHeader_type ), intent(in) :: me
integer, optional, intent(in) :: nUnit
! -------------------------------------------------------------------- !
integer :: iDir
integer :: dmpU
! -------------------------------------------------------------------- !
! Default to write to logUnit
dmpU = logUnit(6)
if (present(nUnit)) then
dmpU = nUnit
end if
write(dmpU, *) ' Stencil '
write(dmpU, *) ' QQ : ', me%QQ
write(dmpU, *) ' QQN : ', me%QQN
if ( allocated(me%cxDir) ) then
write(dmpU, *) ' Offset directions:'
do iDir=1,me%QQN
if ( allocated(me%cxDir) ) then
write(dmpU, *) ' cxDir(:,', iDir, ') = ', &
& me%cxDir(:,iDir)
end if
end do
end if
write(dmpU, *) ' useAll: ', me%useAll
if ( .not. me%useAll ) then
write(dmpU, *) ' nElems: ', me%nElems
if ( me%elem%nVals > 0 ) &
write(dmpU, *) ' Elems : ' &
& //trim( tem_toStr(val = me%elem%val, &
& sep = ',' ) )
end if
end subroutine tem_stencilHeader_dump