read the "total_bands" variable this is a convenience for combination with an "exclude_bands" to evaluate num_bands
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(settings_type), | intent(inout) | :: | settings | |||
| integer, | intent(inout) | :: | total_bands | |||
| type(w90_error_type), | intent(out), | allocatable | :: | error | ||
| type(w90_comm_type), | intent(in) | :: | comm |
subroutine w90_readwrite_read_total_bands(settings, total_bands, error, comm) !! read the "total_bands" variable !! this is a convenience for combination with an "exclude_bands" to evaluate num_bands use w90_error, only: w90_error_type, set_error_input implicit none integer, intent(inout) :: total_bands type(w90_error_type), allocatable, intent(out) :: error type(w90_comm_type), intent(in) :: comm type(settings_type), intent(inout) :: settings logical :: found total_bands = 0 call w90_readwrite_get_keyword(settings, 'total_bands', found, error, comm, i_value=total_bands) if (allocated(error)) return end subroutine w90_readwrite_read_total_bands