subroutine summ_rpt_proc_dist_grid_files (DfileNo, GfileNo, DRec, GRec, rptLun, localrc)
integer, intent(in) :: DFileNo
integer, intent(in) :: GfileNo
type(dist_record), intent(in) :: DRec
type(grid_record), intent(in) :: GRec
integer, intent(in) :: rptLun
integer, intent(out) :: localrc
integer :: DSpecCnt
integer :: DSpecNo
integer :: GSpecCnt
integer :: GSpecNo
localrc = ESMF_SUCCESS
write (rptLun, 9001)
write (rptLun, 9012) DfileNo
write (rptLun, 9013) GfileNo
DSpecCnt = DRec%nDspecs
write (rptLun, 9010) DSpecCnt
GSpecCnt = GRec%nGspecs
write (rptLun, 9011) GSpecCnt
! process all dist records
do DSpecNo = 1,DSpecCnt
! process all grid records
do GSpecNo = 1, GSpecCnt
! display distribution/grid
call summ_rpt_write_detail_line (DSpecNo, GSpecNo, &
DRec%src_dist(DSpecNo), DRec%dst_dist(DSpecNo), &
GRec%src_grid(GSpecNo), GRec%dst_grid(GSpecNo), rptLun, localrc)
end do
end do
write (rptLun, 9002)
9001 FORMAT (' <DistGridFile>')
9002 FORMAT (' </DistGridFile>')
9010 FORMAT (' <DSpecCnt>', I3, '</DSpecCnt>')
9011 FORMAT (' <GSpecCnt>', I3, '</GSpecCnt>')
9012 FORMAT (' <DFileNo>', I3, '</DFileNo>')
9013 FORMAT (' <GFileNo>', I3, '</GFileNo>')
end subroutine summ_rpt_proc_dist_grid_files