unaryContract Interface

interface
public pure module function unaryContract(input, realParams, intParams, logicalParams) result(output)

Arguments

Type IntentOptional Attributes Name
real(kind=rk), intent(in), dimension(:) :: input
real(kind=rk), intent(in), optional, dimension(:) :: realParams
integer(kind=ik), intent(in), optional, dimension(:) :: intParams
logical, intent(in), optional, dimension(:) :: logicalParams

Return Value real(kind=rk),allocatable,dimension(:)

Description

Unary wrapper contracting an array with a smaller array. String name "cont". Uses realParams as the contracting array. After contraction it uses intParams(1) to determine the expected output size. The input array should be evenly divided by size(realParams) and intParams(1). intParams(2) is then used to determine which sub-array of size intParams(1) is returned