narrow_perm Interface

interface
public module subroutine narrow_perm(perm64, proc, perm32, threads)

Arguments

Type IntentOptional Attributes Name
integer(kind=int64), intent(in) :: perm64(:)

the permutation.

character(len=*), intent(in) :: proc

calling procedure, for messages.

integer(kind=int32), intent(out), allocatable :: perm32(:)

the narrowed copy.

integer, intent(in), optional :: threads

caller's team request.

Description

Narrows a 1-based int64 permutation to int32, aborting rather than truncating.