causes w90 to calculate finite difference neighbour lists
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(lib_common_type), | intent(inout) | :: | common_data | |||
| integer, | intent(in) | :: | istdout | |||
| integer, | intent(in) | :: | istderr | |||
| integer, | intent(out) | :: | ierr |
subroutine w90_create_kmesh(common_data, istdout, istderr, ierr) !! causes w90 to calculate finite difference neighbour lists use w90_error_base, only: w90_error_type use w90_kmesh, only: kmesh_get implicit none ! arguments integer, intent(in) :: istdout, istderr integer, intent(out) :: ierr type(lib_common_type), intent(inout) :: common_data ! local variables type(w90_error_type), allocatable :: error ierr = 0 if (common_data%setup_complete) return call kmesh_get(common_data%kmesh_input, common_data%kmesh_info, common_data%print_output, & common_data%kpt_latt, common_data%real_lattice, common_data%num_kpts, & common_data%gamma_only, common_data%seedname, istdout, common_data%timer, & error, common_data%comm) if (allocated(error)) then call prterr(error, ierr, istdout, istderr, common_data%comm) return end if common_data%setup_complete = .true. end subroutine w90_create_kmesh