fdoc

subroutineadd_useprivate

subroutine add_use(ids, id)

Add entity id to ids, once.

Arguments

NameTypeIntentAttributesDescription
idsintegerinoutallocatabledimension(:)

the entities

idintegerin

the entity

Calls

Called by

Source

Show the code
subroutine add_use(ids, id)
    integer, allocatable, intent(inout) :: ids(:)   !! the entities
    integer, intent(in) :: id                       !! the entity

    if (allocated(ids)) then
        if (any(ids == id)) return
    end if
    call push_int(ids, id)
end subroutine add_use