Write the scalar variable in the output file
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=wp), | intent(in), | dimension(index:imx-index,index:jmx-index,index:kmx-index) | :: | var | ||
character(len=*), | intent(in) | :: | name | |||
integer, | intent(in) | :: | index |
subroutine write_scalar(var, name, index)
!< Write the scalar variable in the output file
implicit none
integer, intent(in) :: index
real(wp), dimension(index:imx-index,index:jmx-index,index:kmx-index), intent(in) :: var
character(len=*), intent(in):: name
DebugCall("write_scalar: "//trim(name))
write(OUT_FILE_UNIT, format) (((var(i, j, k),i=1,imx-1), j=1,jmx-1), k=1,kmx-1)
end subroutine write_scalar