FORCES
FORtran lib for Comp. Env. Sys.
|
Read a file into a 2D array containing reals. More...
Public Member Functions | |
subroutine | loadtxt_dp (filename, d, skiprows, max_rows) |
Read a file into a 2D array containing reals. | |
subroutine | loadtxt_sp (filename, d, skiprows, max_rows) |
Read a file into a 2D array containing reals. | |
subroutine mo_io::loadtxt::loadtxt_dp | ( | character(len=*), intent(in) | filename, |
real(dp), dimension(:,:), intent(out), allocatable | d, | ||
integer(i4), intent(in), optional | skiprows, | ||
integer(i4), intent(in), optional | max_rows | ||
) |
Read a file into a 2D array containing reals.
[in] | filename | Filename to load the array from |
[out] | d | The array 'd' will be automatically allocated with the correct dimensions |
[in] | skiprows | lines to skip at the begining |
[in] | max_rows | Read max_rows lines of content after skiprows lines. The default is to read all the lines (negative values). |
Definition at line 33 of file mo_io.f90.
References mo_io::number_of_columns(), and mo_io::number_of_rows().
subroutine mo_io::loadtxt::loadtxt_sp | ( | character(len=*), intent(in) | filename, |
real(sp), dimension(:,:), intent(out), allocatable | d, | ||
integer(i4), intent(in), optional | skiprows, | ||
integer(i4), intent(in), optional | max_rows | ||
) |
Read a file into a 2D array containing reals.
[in] | filename | Filename to load the array from |
[out] | d | The array 'd' will be automatically allocated with the correct dimensions |
[in] | skiprows | lines to skip at the begining |
[in] | max_rows | Read max_rows lines of content after skiprows lines. The default is to read all the lines (negative values). |
Definition at line 75 of file mo_io.f90.
References mo_io::number_of_columns(), and mo_io::number_of_rows().