tblite
Light-weight tight-binding framework
|
Implementation of npy input routines. More...
Data Types | |
interface | load_npy |
Functions/Subroutines | |
subroutine | load_npy_i4_r1_file (filename, array, iostat, iomsg) |
subroutine, public | get_npy_descriptor (reader, vtype, vshape, stat, msg) |
Read the npy header from a binary file and retrieve the descriptor string. | |
Implementation of npy input routines.
subroutine, public tblite_io_numpy_load::get_npy_descriptor | ( | type(reader_type), intent(inout) | reader, |
character(len=:), intent(out), allocatable | vtype, | ||
integer, dimension(:), intent(out), allocatable | vshape, | ||
integer, intent(out) | stat, | ||
character(len=:), intent(out), allocatable | msg ) |
Read the npy header from a binary file and retrieve the descriptor string.
[in,out] | reader | Reader for the binary file |
[out] | vtype | Type of data saved in npy file |
[out] | vshape | Shape descriptor of the |
[out] | stat | Status of operation |
[out] | msg | Associated error message in case of non-zero status |
subroutine tblite_io_numpy_load::load_npy_i4_r1_file | ( | character(len=*), intent(in) | filename, |
integer(i4), dimension(:), intent(out), allocatable | array, | ||
integer, intent(out), optional | iostat, | ||
character(len=:), intent(out), optional, allocatable | iomsg ) |
[in] | filename | Name of the npy file to load from |
[out] | array | Array to be loaded from the npy file |
[out] | iostat | Error status of loading, zero on success |
[out] | iomsg | Associated error message in case of non-zero status code |