sort_channels_by_energy Module Subroutine

public impure module subroutine sort_channels_by_energy(channels)

Bubble sort the array of channels such that the channel energies are in ascending order

Arguments

Type IntentOptional Attributes Name
class(channel_type), intent(inout) :: channels(:)