tblite
Light-weight tight-binding framework
Loading...
Searching...
No Matches
tblite_double_dictionary::double_dictionary_type Type Reference

Public Member Functions

generic, public initialize_entry (self, label)
 Initialize a label in the dictionary.
 
generic, public initialize_entry (self, label, ndim1)
 Initialize a 1D array in the dictionary.
 
generic, public initialize_entry (self, label, ndim1, ndim2)
 Initialize a 2D array in the dictionary.
 
generic, public initialize_entry (self, label, ndim1, ndim2, ndim3)
 Initialize a 3D array in the dictionary.
 
procedure ini_label (self, label)
 Initialize a label in the dictionary.
 
procedure ini_1d (self, label, ndim1)
 Initialize a 1D array in the dictionary.
 
procedure ini_2d (self, label, ndim1, ndim2)
 Initialize a 2D array in the dictionary.
 
procedure ini_3d (self, label, ndim1, ndim2, ndim3)
 Initialize a 3D array in the dictionary.
 
generic, public add_entry (self, label, array)
 Add a 1D array to the dictionary.
 
generic, public add_entry (self, label, array)
 Add a 2D array to the dictionary.
 
generic, public add_entry (self, label, array)
 Add a 3D array to the dictionary.
 
procedure add_1d (self, label, array)
 Add a 1D array to the dictionary.
 
procedure add_2d (self, label, array)
 Add a 2D array to the dictionary.
 
procedure add_3d (self, label, array)
 Add a 3D array to the dictionary.
 
generic, public get_entry (self, index, array)
 Get a 1D array from the dictionary.
 
generic, public get_entry (self, index, array)
 Get a 2D array from the dictionary.
 
generic, public get_entry (self, index, array)
 Get a 3D array from the dictionary.
 
generic, public get_entry (self, label, array)
 Get a 1D array from the dictionary.
 
generic, public get_entry (self, label, array)
 Get a 2D array from the dictionary.
 
generic, public get_entry (self, label, array)
 Get a 3D array from the dictionary.
 
procedure get_1d_index (self, index, array)
 Get a 1D array from the dictionary.
 
procedure get_2d_index (self, index, array)
 Get a 2D array from the dictionary.
 
procedure get_3d_index (self, index, array)
 Get a 3D array from the dictionary.
 
procedure get_1d_label (self, label, array)
 Get a 1D array from the dictionary.
 
procedure get_2d_label (self, label, array)
 Get a 2D array from the dictionary.
 
procedure get_3d_label (self, label, array)
 Get a 3D array from the dictionary.
 
generic, public update (self, label, array)
 
generic, public update (self, label, array)
 
generic, public update (self, label, array)
 
procedure update_1d (self, label, array)
 
procedure update_2d (self, label, array)
 
procedure update_3d (self, label, array)
 
procedure, public get_label (self, index, label)
 Get the label of a given index.
 
procedure push (self, label, it)
 Add a new entry to the dictionary.
 
procedure, public get_n_entries (self)
 
generic, public concatenate (self, dict2)
 
procedure concatenate_overwrite (self, dict2)
 
generic, public assignment (to, from)
 
procedure copy (to, from)
 
generic, public operator (self, dict2)
 
procedure combine_dict (self, dict2)
 
generic, public remove_entry (self, label)
 
generic, public remove_entry (self, index)
 
procedure remove_entry_label (self, label)
 
procedure remove_entry_index (self, index)
 
generic, public get_index (self, label)
 Find the index of a label in the dictionary.
 
procedure return_label_index (self, label)
 Find the index of a label in the dictionary.
 
procedure dump_to_file (self, file, error)
 Write double dictionary data to file.
 
generic, public dump (self, file, error)
 Write double dictionary data to file.
 
generic, public operator (lhs, rhs)
 Check if two double dictionaries are equal.
 
procedure equal_dict (lhs, rhs)
 Check if two double dictionaries are equal.
 
generic, public load (self, filename, error)
 Read double dictionary data from file.
 
procedure load_from_file (self, filename, error)
 Read double dictionary data from file.
 

Data Fields

integer n = 0
 
type(double_record), dimension(:), allocatable record
 

Member Function/Subroutine Documentation

◆ add_1d()

procedure tblite_double_dictionary::double_dictionary_type::add_1d ( class(double_dictionary_type), intent(inout) self,
character(len=*), intent(in) label,
real(wp), dimension(:), intent(in) array )

Add a 1D array to the dictionary.

Parameters
[in,out]selfInstance of the double dictionary
[in]labelLabel for the array
[in]array1D array to be added

◆ add_2d()

procedure tblite_double_dictionary::double_dictionary_type::add_2d ( class(double_dictionary_type), intent(inout) self,
character(len=*), intent(in) label,
real(wp), dimension(:,:), intent(in) array )

Add a 2D array to the dictionary.

Parameters
[in,out]selfInstance of the double dictionary
[in]labelLabel for the array
[in]array2D array to be added

◆ add_3d()

procedure tblite_double_dictionary::double_dictionary_type::add_3d ( class(double_dictionary_type), intent(inout) self,
character(len=*), intent(in) label,
real(wp), dimension(:, :, :), intent(in) array )

Add a 3D array to the dictionary.

Parameters
[in,out]selfInstance of the double dictionary
[in]labelLabel for the array
[in]array3D array to be added

◆ add_entry() [1/3]

generic, public tblite_double_dictionary::double_dictionary_type::add_entry ( class(double_dictionary_type), intent(inout) self,
character(len=*), intent(in) label,
real(wp), dimension(:), intent(in) array )

Add a 1D array to the dictionary.

Parameters
[in,out]selfInstance of the double dictionary
[in]labelLabel for the array
[in]array1D array to be added

◆ add_entry() [2/3]

generic, public tblite_double_dictionary::double_dictionary_type::add_entry ( class(double_dictionary_type), intent(inout) self,
character(len=*), intent(in) label,
real(wp), dimension(:,:), intent(in) array )

Add a 2D array to the dictionary.

Parameters
[in,out]selfInstance of the double dictionary
[in]labelLabel for the array
[in]array2D array to be added

◆ add_entry() [3/3]

generic, public tblite_double_dictionary::double_dictionary_type::add_entry ( class(double_dictionary_type), intent(inout) self,
character(len=*), intent(in) label,
real(wp), dimension(:, :, :), intent(in) array )

Add a 3D array to the dictionary.

Parameters
[in,out]selfInstance of the double dictionary
[in]labelLabel for the array
[in]array3D array to be added

◆ dump()

generic, public tblite_double_dictionary::double_dictionary_type::dump ( class(double_dictionary_type), intent(in) self,
character(len=*), intent(in) file,
type(error_type), intent(out), allocatable error )

Write double dictionary data to file.

Parameters
[in]selfInstance of the parametrization data
[in]fileFile name
[out]errorError handling

◆ dump_to_file()

procedure tblite_double_dictionary::double_dictionary_type::dump_to_file ( class(double_dictionary_type), intent(in) self,
character(len=*), intent(in) file,
type(error_type), intent(out), allocatable error )

Write double dictionary data to file.

Parameters
[in]selfInstance of the parametrization data
[in]fileFile name
[out]errorError handling

◆ equal_dict()

procedure tblite_double_dictionary::double_dictionary_type::equal_dict ( class(double_dictionary_type), intent(in) lhs,
class(double_dictionary_type), intent(in) rhs )

Check if two double dictionaries are equal.

Parameters
[in]lhsFirst dictionary to compare
[in]rhsSecond dictionary to compare
Returns
Result of the comparison

◆ get_1d_index()

procedure tblite_double_dictionary::double_dictionary_type::get_1d_index ( class(double_dictionary_type), intent(in) self,
integer, intent(in) index,
real(wp), dimension(:), intent(out), allocatable array )

Get a 1D array from the dictionary.

Parameters
[in]selfInstance of the double dictionary
[in]indexIndex of the array in the dictionary
[out]array1D array to be returned

◆ get_1d_label()

procedure tblite_double_dictionary::double_dictionary_type::get_1d_label ( class(double_dictionary_type), intent(in) self,
character(len=*), intent(in) label,
real(wp), dimension(:), intent(out), allocatable array )

Get a 1D array from the dictionary.

Parameters
[in]selfInstance of the double dictionary
[in]labelLabel for the array
[out]array1D array to be returned

◆ get_2d_index()

procedure tblite_double_dictionary::double_dictionary_type::get_2d_index ( class(double_dictionary_type), intent(in) self,
integer, intent(in) index,
real(wp), dimension(:,:), intent(out), allocatable array )

Get a 2D array from the dictionary.

Parameters
[in]selfInstance of the double dictionary
[in]indexIndex of the array in the dictionary
[out]array2D array to be returned

◆ get_2d_label()

procedure tblite_double_dictionary::double_dictionary_type::get_2d_label ( class(double_dictionary_type), intent(in) self,
character(len=*), intent(in) label,
real(wp), dimension(:,:), intent(out), allocatable array )

Get a 2D array from the dictionary.

Parameters
[in]selfInstance of the double dictionary
[in]labelLabel for the array
[out]array2D array to be returned

◆ get_3d_index()

procedure tblite_double_dictionary::double_dictionary_type::get_3d_index ( class(double_dictionary_type), intent(in) self,
integer, intent(in) index,
real(wp), dimension(:, :, :), intent(out), allocatable array )

Get a 3D array from the dictionary.

Parameters
[in]selfInstance of the double dictionary
[in]indexIndex of the array in the dictionary
[out]array3D array to be returned

◆ get_3d_label()

procedure tblite_double_dictionary::double_dictionary_type::get_3d_label ( class(double_dictionary_type), intent(in) self,
character(len=*), intent(in) label,
real(wp), dimension(:, :, :), intent(out), allocatable array )

Get a 3D array from the dictionary.

Parameters
[in]selfInstance of the double dictionary
[in]labelLabel for the array
[out]array3D array to be returned

◆ get_entry() [1/6]

generic, public tblite_double_dictionary::double_dictionary_type::get_entry ( class(double_dictionary_type), intent(in) self,
integer, intent(in) index,
real(wp), dimension(:), intent(out), allocatable array )

Get a 1D array from the dictionary.

Parameters
[in]selfInstance of the double dictionary
[in]indexIndex of the array in the dictionary
[out]array1D array to be returned

◆ get_entry() [2/6]

generic, public tblite_double_dictionary::double_dictionary_type::get_entry ( class(double_dictionary_type), intent(in) self,
integer, intent(in) index,
real(wp), dimension(:,:), intent(out), allocatable array )

Get a 2D array from the dictionary.

Parameters
[in]selfInstance of the double dictionary
[in]indexIndex of the array in the dictionary
[out]array2D array to be returned

◆ get_entry() [3/6]

generic, public tblite_double_dictionary::double_dictionary_type::get_entry ( class(double_dictionary_type), intent(in) self,
integer, intent(in) index,
real(wp), dimension(:, :, :), intent(out), allocatable array )

Get a 3D array from the dictionary.

Parameters
[in]selfInstance of the double dictionary
[in]indexIndex of the array in the dictionary
[out]array3D array to be returned

◆ get_entry() [4/6]

generic, public tblite_double_dictionary::double_dictionary_type::get_entry ( class(double_dictionary_type), intent(in) self,
character(len=*), intent(in) label,
real(wp), dimension(:), intent(out), allocatable array )

Get a 1D array from the dictionary.

Parameters
[in]selfInstance of the double dictionary
[in]labelLabel for the array
[out]array1D array to be returned

◆ get_entry() [5/6]

generic, public tblite_double_dictionary::double_dictionary_type::get_entry ( class(double_dictionary_type), intent(in) self,
character(len=*), intent(in) label,
real(wp), dimension(:,:), intent(out), allocatable array )

Get a 2D array from the dictionary.

Parameters
[in]selfInstance of the double dictionary
[in]labelLabel for the array
[out]array2D array to be returned

◆ get_entry() [6/6]

generic, public tblite_double_dictionary::double_dictionary_type::get_entry ( class(double_dictionary_type), intent(in) self,
character(len=*), intent(in) label,
real(wp), dimension(:, :, :), intent(out), allocatable array )

Get a 3D array from the dictionary.

Parameters
[in]selfInstance of the double dictionary
[in]labelLabel for the array
[out]array3D array to be returned

◆ get_label()

procedure, public tblite_double_dictionary::double_dictionary_type::get_label ( class(double_dictionary_type), intent(in) self,
integer, intent(in) index,
character(len=:), intent(out), allocatable label )

Get the label of a given index.

Parameters
[in]selfInstance of the double dictionary
[in]indexIndex of the label in the dictionary
[out]labelLabel to be returned

◆ ini_1d()

procedure tblite_double_dictionary::double_dictionary_type::ini_1d ( class(double_dictionary_type), intent(inout) self,
character(len=*), intent(in) label,
integer, intent(in) ndim1 )

Initialize a 1D array in the dictionary.

Parameters
[in,out]selfInstance of the double dictionary
[in]labelLabel for the array
[in]ndim1Dimensions of the 1D array

◆ ini_2d()

procedure tblite_double_dictionary::double_dictionary_type::ini_2d ( class(double_dictionary_type), intent(inout) self,
character(len=*), intent(in) label,
integer, intent(in) ndim1,
integer, intent(in) ndim2 )

Initialize a 2D array in the dictionary.

Parameters
[in,out]selfInstance of the double dictionary
[in]labelLabel for the array
[in]ndim1Dimensions of the 2D array
[in]ndim2Dimensions of the 2D array

◆ ini_3d()

procedure tblite_double_dictionary::double_dictionary_type::ini_3d ( class(double_dictionary_type), intent(inout) self,
character(len=*), intent(in) label,
integer, intent(in) ndim1,
integer, intent(in) ndim2,
integer, intent(in) ndim3 )

Initialize a 3D array in the dictionary.

Parameters
[in,out]selfInstance of the double dictionary
[in]labelLabel for the array
[in]ndim1Dimensions of the 3D array
[in]ndim2Dimensions of the 3D array
[in]ndim3Dimensions of the 3D array

◆ ini_label()

procedure tblite_double_dictionary::double_dictionary_type::ini_label ( class(double_dictionary_type), intent(inout) self,
character(len=*), intent(in) label )

Initialize a label in the dictionary.

Parameters
[in,out]selfInstance of the double dictionary
[in]labelLabel for the array

◆ initialize_entry() [1/4]

generic, public tblite_double_dictionary::double_dictionary_type::initialize_entry ( class(double_dictionary_type), intent(inout) self,
character(len=*), intent(in) label )

Initialize a label in the dictionary.

Parameters
[in,out]selfInstance of the double dictionary
[in]labelLabel for the array

◆ initialize_entry() [2/4]

generic, public tblite_double_dictionary::double_dictionary_type::initialize_entry ( class(double_dictionary_type), intent(inout) self,
character(len=*), intent(in) label,
integer, intent(in) ndim1 )

Initialize a 1D array in the dictionary.

Parameters
[in,out]selfInstance of the double dictionary
[in]labelLabel for the array
[in]ndim1Dimensions of the 1D array

◆ initialize_entry() [3/4]

generic, public tblite_double_dictionary::double_dictionary_type::initialize_entry ( class(double_dictionary_type), intent(inout) self,
character(len=*), intent(in) label,
integer, intent(in) ndim1,
integer, intent(in) ndim2 )

Initialize a 2D array in the dictionary.

Parameters
[in,out]selfInstance of the double dictionary
[in]labelLabel for the array
[in]ndim1Dimensions of the 2D array
[in]ndim2Dimensions of the 2D array

◆ initialize_entry() [4/4]

generic, public tblite_double_dictionary::double_dictionary_type::initialize_entry ( class(double_dictionary_type), intent(inout) self,
character(len=*), intent(in) label,
integer, intent(in) ndim1,
integer, intent(in) ndim2,
integer, intent(in) ndim3 )

Initialize a 3D array in the dictionary.

Parameters
[in,out]selfInstance of the double dictionary
[in]labelLabel for the array
[in]ndim1Dimensions of the 3D array
[in]ndim2Dimensions of the 3D array
[in]ndim3Dimensions of the 3D array

◆ load()

generic, public tblite_double_dictionary::double_dictionary_type::load ( class(double_dictionary_type), intent(inout) self,
character(len=*), intent(in) filename,
type(error_type), intent(out), allocatable error )

Read double dictionary data from file.

Parameters
[in,out]selfInstance of the parametrization data
[in]filenameFile name
[out]errorError handling

◆ load_from_file()

procedure tblite_double_dictionary::double_dictionary_type::load_from_file ( class(double_dictionary_type), intent(inout) self,
character(len=*), intent(in) filename,
type(error_type), intent(out), allocatable error )

Read double dictionary data from file.

Parameters
[in,out]selfInstance of the parametrization data
[in]filenameFile name
[out]errorError handling

◆ operator()

generic, public tblite_double_dictionary::double_dictionary_type::operator ( class(double_dictionary_type), intent(in) lhs,
class(double_dictionary_type), intent(in) rhs )

Check if two double dictionaries are equal.

Parameters
[in]lhsFirst dictionary to compare
[in]rhsSecond dictionary to compare
Returns
Result of the comparison

◆ push()

procedure tblite_double_dictionary::double_dictionary_type::push ( class(double_dictionary_type), intent(inout) self,
character(len=*), intent(in) label,
integer, intent(out) it )

Add a new entry to the dictionary.

Parameters
[in,out]selfInstance of the double dictionary
[in]labelLabel for the array
[out]itIndex of the label in the dictionary

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