subroutine display_flux1D(flux_density, area, fraction, rc)
real(ESMF_KIND_R8), pointer :: flux_density(:)
real(ESMF_KIND_R8), pointer :: area(:)
real(ESMF_KIND_R8), pointer :: fraction(:)
integer, intent(out), optional :: rc
integer :: i,localrc, npet, lpet
type(ESMF_VM) :: vm
localrc = ESMF_SUCCESS
if(present(rc)) rc = ESMF_SUCCESS
call ESMF_VMGetCurrent(vm, rc=localrc)
if (ESMF_LogFoundError(localrc, &
ESMF_ERR_PASSTHRU, &
ESMF_CONTEXT, rcToReturn=rc)) return
call ESMF_VMGet(vm, petCount=npet, localPet=lpet, rc=localrc)
if (ESMF_LogFoundError(localrc, &
ESMF_ERR_PASSTHRU, &
ESMF_CONTEXT, rcToReturn=rc)) return
do i = lbound(flux_density, 1), ubound(flux_density, 1)
!print *, i,flux_density(i), area(i) !, fraction(i)
write(*,'(I3,I7,2F14.10)') lpet,i,flux_density(i), area(i)
enddo
end subroutine display_flux1D