valid_from_mask Interface

interface
public module subroutine valid_from_mask(mask, n, proc, valid)

Arguments

Type IntentOptional Attributes Name
logical, intent(in) :: mask(:)

.false. marks a null.

integer(kind=int64), intent(in) :: n

expected length.

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

calling procedure, for messages.

integer(kind=c_int8_t), intent(out), allocatable :: valid(:)

1 per valid element.

Description

Builds the engine's int8 validity array from a logical mask, leaving valid UNALLOCATED when the mask marks nothing null (the engine's no-nulls fast path).