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

Implementation of npy input routines. More...

Data Types

interface  load_npz
 Interface for loading npz files. More...
 

Functions/Subroutines

subroutine, public get_npz_descriptor (filename, varname, vtype, vshape, iostat, iomsg)
 Get numpy array descriptor from a npz file.
 

Detailed Description

Implementation of npy input routines.

Function/Subroutine Documentation

◆ get_npz_descriptor()

subroutine, public tblite_io_numpy_loadz::get_npz_descriptor ( character(len=*), intent(in) filename,
character(len=*), intent(in) varname,
character(len=:), intent(out), allocatable vtype,
integer, dimension(:), intent(out), allocatable vshape,
integer, intent(out), optional iostat,
character(len=:), intent(out), optional, allocatable iomsg )

Get numpy array descriptor from a npz file.

Parameters
[in]filenameFilename of the npz file
[in]varnameName of the variable to load
[out]vtypeVariable type of the numpy array
[out]vshapeVariable shape of the numpy array
[out]iostatStatus of the read operation
[out]iomsgError message in case of failure