This function returns a string describing the convention associated to a sc_phase_conv integer value.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | sc_phase_conv | The integer index for which we want to get the string |
function param_get_convention_type(sc_phase_conv)
!! This function returns a string describing the convention
!! associated to a sc_phase_conv integer value.
integer, intent(in) :: sc_phase_conv
!! The integer index for which we want to get the string
character(len=80) :: param_get_convention_type
character(len=4) :: orderstr
if (sc_phase_conv .eq. 1) then
param_get_convention_type = "Tight-binding convention"
else if (sc_phase_conv .eq. 2) then
param_get_convention_type = "Wannier90 convention"
else
param_get_convention_type = "Unknown type of convention"
end if
end function param_get_convention_type