sortedposofval Interface

private interface sortedposofval

return the position of a given value in the list 'sorted'. this is mainly for internal usage. the sorted list is only a pointer list to the actual values thus, in order to get the index of a given value, you need to look up the entry in the sorted list. this is done by the positionofval routine

Calls

interface~~sortedposofval~~CallsGraph interface~sortedposofval sortedposofval proc~sortposofval_projection sortposofval_projection interface~sortedposofval->proc~sortposofval_projection

Called by

interface~~sortedposofval~~CalledByGraph interface~sortedposofval sortedposofval proc~append_da_projection append_da_projection proc~append_da_projection->interface~sortedposofval proc~posofval_projection posofval_projection proc~posofval_projection->interface~sortedposofval interface~append append interface~append->proc~append_da_projection interface~positionofval positionofval interface~positionofval->proc~posofval_projection proc~atl_load_projection atl_load_projection proc~atl_load_projection->interface~append proc~ply_fill_dynprojectarray ply_fill_dynProjectArray proc~ply_fill_dynprojectarray->interface~append proc~sorttruncate_da_projection sorttruncate_da_projection proc~sorttruncate_da_projection->interface~append interface~sorttruncate sorttruncate interface~sorttruncate->proc~sorttruncate_da_projection proc~atl_initialize atl_initialize proc~atl_initialize->proc~atl_load_projection proc~atl_load_general_projection atl_load_general_projection proc~atl_load_general_projection->proc~ply_fill_dynprojectarray proc~atl_load_subprojection atl_load_subprojection proc~atl_load_subprojection->proc~ply_fill_dynprojectarray

Module Procedures

private function sortposofval_projection(me, val, nextifnotfound, lower, upper) result(pos)

return the sorted position of a value in the given dynamic array

Read more…

Arguments

Type IntentOptional Attributes Name
type(dyn_projectionarray_type), intent(in) :: me
type(ply_prj_init_type), intent(in) :: val
logical, intent(in), optional :: nextifnotfound

flag to indicate, if the next entry in the list should be returned, if the searched one is not found.

integer, intent(in), optional :: lower
integer, intent(in), optional :: upper

Return Value integer