format_data Subroutine

public subroutine format_data(x, y, format_str, value_str)

Small function for formatting data according to a format string. Argument value_str is the output string containing the x and y values.

Arguments

Type IntentOptional Attributes Name
real(kind=8), intent(in), dimension(dimx) :: x

Input variable

real(kind=8), intent(in) :: y

Function value at x

character(len=20) :: format_str

Formatting string

character(len=1000) :: value_str

Output string