appending a value to the dynamic array
with this subroutine, a given value can be added to the dynamic array. the actual position of this value in the dynamic array will be returned, so it can be found again easily later. with the wasadded flag, it is indicated,\n wasadded = true, if this entry had to be added,\n wasadded = false, if this was already found in the array.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(dyn_projectionarray_type) | :: | me | ||||
| type(ply_prj_init_type), | intent(in) | :: | val | |||
| integer, | intent(in), | optional | :: | length |
optional length to expand the array |
|
| integer, | intent(out), | optional | :: | pos |
position in the array, if the value is found |
|
| logical, | intent(out), | optional | :: | wasadded |
flag to indicate, if val was newly added |