global_most_populated_states Subroutine

public subroutine global_most_populated_states(n_keep, run, largest_walkers, norm, rank_of_largest, hdiag_largest)

@brief Return the most populated states over all processors.

@details Reducing version of proc_most_populated_states, which works per process. Return as many states as the size of largest_walkers. Returns the norm as well, if requested. @param[out] largest_walkers, Array of most n_keep most populated states.

Arguments

Type IntentOptional Attributes Name
integer, intent(in) :: n_keep
integer, intent(in) :: run
integer(kind=n_int), intent(out) :: largest_walkers(0:NIfTot,n_keep)
real(kind=dp), intent(out), optional :: norm
integer, intent(out), optional :: rank_of_largest(n_keep)
real(kind=dp), intent(inout), optional :: hdiag_largest(n_keep)

Contents