0.6.2-dev0
FORCES
FORtran lib for Comp. Env. Sys.
Loading...
Searching...
No Matches
mo_io::loadtxt Interface Reference

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.
 

Detailed Description

Read a file into a 2D array containing reals.

Definition at line 26 of file mo_io.f90.

Member Function/Subroutine Documentation

◆ loadtxt_dp()

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.

Parameters
[in]filenameFilename to load the array from
[out]dThe array 'd' will be automatically allocated with the correct dimensions
[in]skiprowslines to skip at the begining
[in]max_rowsRead 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().

Here is the call graph for this function:

◆ loadtxt_sp()

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.

Parameters
[in]filenameFilename to load the array from
[out]dThe array 'd' will be automatically allocated with the correct dimensions
[in]skiprowslines to skip at the begining
[in]max_rowsRead 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().

Here is the call graph for this function:

The documentation for this interface was generated from the following file: