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 w90_readwrite_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) :: w90_readwrite_get_convention_type if (sc_phase_conv .eq. 1) then w90_readwrite_get_convention_type = "Tight-binding convention" else if (sc_phase_conv .eq. 2) then w90_readwrite_get_convention_type = "Wannier90 convention" else w90_readwrite_get_convention_type = "Unknown type of convention" end if end function w90_readwrite_get_convention_type