tblite
Light-weight tight-binding framework
Loading...
Searching...
No Matches
tblite_io_numpy_load Module Reference

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.
 

Detailed Description

Implementation of npy input routines.

Function/Subroutine Documentation

◆ get_npy_descriptor()

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.

Parameters
[in,out]readerReader for the binary file
[out]vtypeType of data saved in npy file
[out]vshapeShape descriptor of the
[out]statStatus of operation
[out]msgAssociated error message in case of non-zero status

◆ load_npy_i4_r1_file()

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 )
Parameters
[in]filenameName of the npy file to load from
[out]arrayArray to be loaded from the npy file
[out]iostatError status of loading, zero on success
[out]iomsgAssociated error message in case of non-zero status code