Write a description and 2 columns of values to 2dp in standard notation. file : input integer : Fortran output unit identifier desc : input character string : Character string to be used val1 : input real : Value of the left variable val2 : input real : Value of the right variable
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | file | |||
character(len=70), | intent(in) | :: | desc | |||
real(kind=8), | intent(in) | :: | val1 | |||
real(kind=8), | intent(in) | :: | val2 |
subroutine dblcol(file, desc, val1, val2)
!! Write a description and 2 columns of values to 2dp in standard notation.
!! file : input integer : Fortran output unit identifier
!! desc : input character string : Character string to be used
!! val1 : input real : Value of the left variable
!! val2 : input real : Value of the right variable
implicit none
! Arguments
integer, intent(in) :: file
character(len=70), intent(in) :: desc
real(8), intent(in) :: val1, val2
write(file,10) desc, val1, val2
10 format(1x,a,t75,f10.2,t100,f10.2)
end subroutine dblcol