append_da_vecreal Subroutine

public subroutine append_da_vecreal(me, val, length, pos, wasadded)

appending a sorted list of values to the dynamic array

with this subroutine, a given list of sorted values can be added to the dynamic array. the actual positions of these values 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.

Arguments

TypeIntentOptionalAttributesName
type(dyn_realarray_type) :: me
real(kind=rk), intent(in) :: val(:)
integer, intent(in), optional :: length

optional length to expand the array

integer, intent(out), optional :: pos(:)

position in the array, the values are found at.

logical, intent(out), optional :: wasadded(:)

flag to indicate, if val was newly added


Calls

proc~~append_da_vecreal~~CallsGraph proc~append_da_vecreal append_da_vecreal interface~expand~19 expand proc~append_da_vecreal->interface~expand~19 proc~expand_da_label expand_da_label interface~expand~19->proc~expand_da_label

Called by

proc~~append_da_vecreal~~CalledByGraph proc~append_da_vecreal append_da_vecreal interface~append~20 append interface~append~20->proc~append_da_vecreal

Contents


Variables

TypeVisibilityAttributesNameInitial
real(kind=rk), public :: lastval
logical, public :: addedval(size(val))
integer, public :: i
integer, public :: veclen
integer, public :: maxlen
integer, public :: nappend
integer, public :: rem_app
integer, public :: curval
integer, public :: ival
integer, public :: iold
integer, public :: iadd
integer, public, allocatable:: newsorted(:)