Read scalar from the tecplot file
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=wp), | intent(out), | dimension(index:imx-index,index:jmx-index,index:kmx-index) | :: | var | ||
character(len=*), | intent(in) | :: | name | |||
integer, | intent(in) | :: | index |
subroutine read_scalar(var, name, index)
!< Read scalar from the tecplot file
implicit none
integer, intent(in) :: index
real(wp), dimension(index:imx-index,index:jmx-index,index:kmx-index), intent(out) :: var
character(len=*), intent(in):: name
DebugCall('read_output_tec'//trim(name))
read(IN_FILE_UNIT, *) (((var(i, j, k),i=1,imx-1), j=1,jmx-1), k=1,kmx-1)
end subroutine read_scalar