sort_last_state Subroutine

public impure subroutine sort_last_state(states, iout)

Sort the last element in the array to where it should go, assuming the rest of the array is sorted

Arguments

Type IntentOptional Attributes Name
class(asymtop_state), intent(inout), allocatable, target :: states(:)

The array of states

integer, intent(out), optional :: iout

The array to which the last state was sorted