| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(btree_i8_sp2d), | intent(in) | :: | tree | |||
| integer(kind=keyt), | intent(in) | :: | key | |||
| type(btree_data_sp2d), | intent(out) | :: | value | |||
| logical, | intent(out), | optional | :: | exists |
SUBROUTINE btree_find_i8_sp2d (tree, key, value, exists) # 451 "/__w/dbcsr/dbcsr/src/utils/dbcsr_btree.F" TYPE(btree_i8_sp2d), INTENT(IN) :: tree # 452 "/__w/dbcsr/dbcsr/src/utils/dbcsr_btree.F" INTEGER(KIND=keyt), INTENT(IN) :: key # 453 "/__w/dbcsr/dbcsr/src/utils/dbcsr_btree.F" TYPE(btree_data_sp2d), INTENT(OUT) :: value # 454 "/__w/dbcsr/dbcsr/src/utils/dbcsr_btree.F" LOGICAL, INTENT(OUT), OPTIONAL :: exists ! TYPE(btree_node_i8_sp2d), POINTER :: node # 457 "/__w/dbcsr/dbcsr/src/utils/dbcsr_btree.F" INTEGER :: position ! CALL btree_find_full_i8_sp2d (tree, key, node, position, short=.TRUE.) # 460 "/__w/dbcsr/dbcsr/src/utils/dbcsr_btree.F" IF (PRESENT(exists)) THEN exists = position .GT. 0 END IF IF (position .GT. 0) THEN value = node%values(position) END IF END SUBROUTINE btree_find_i8_sp2d