subroutineadd_useprivate
subroutine add_use(ids, id)
Add entity id to ids, once.
Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
| ids | integer | inout | allocatabledimension(:) | the entities |
| id | integer | in | 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