![]() |
(git:936074a)
|
pool for for elements that are retained and released More...
Data Types | |
| type | cp_fm_pool_p_type |
| to create arrays of pools More... | |
| type | cp_fm_pool_type |
| represent a pool of elements with the same structure More... | |
| interface | fm_pools_create_fm_vect |
| interface | fm_pools_give_back_fm_vect |
Functions/Subroutines | |
| subroutine, public | fm_pool_create (pool, el_struct) |
| creates a pool of elements | |
| subroutine, public | fm_pool_retain (pool) |
| retains the pool (see cp2k/doc/ReferenceCounting.html) | |
| subroutine, public | fm_pool_release (pool) |
| releases the given pool (see cp2k/doc/ReferenceCounting.html) | |
| subroutine, public | fm_pool_create_fm (pool, element, name) |
| returns an element, allocating it if none is in the pool | |
| subroutine, public | fm_pool_give_back_fm (pool, element) |
| returns the element to the pool | |
| type(cp_fm_struct_type) function, pointer, public | fm_pool_get_el_struct (pool) |
| returns the structure of the elements in this pool | |
| subroutine, public | fm_pools_dealloc (pools) |
| deallocate an array of pools (releasing each pool) | |
pool for for elements that are retained and released
| subroutine, public cp_fm_pool_types::fm_pool_create | ( | type(cp_fm_pool_type), pointer | pool, |
| type(cp_fm_struct_type), target | el_struct | ||
| ) |
creates a pool of elements
| pool | the pool to create |
| el_struct | the structure of the elements that are stored in this pool |
Definition at line 99 of file cp_fm_pool_types.F.
| subroutine, public cp_fm_pool_types::fm_pool_retain | ( | type(cp_fm_pool_type), intent(inout) | pool | ) |
retains the pool (see cp2k/doc/ReferenceCounting.html)
| pool | the pool to retain |
Definition at line 117 of file cp_fm_pool_types.F.
| subroutine, public cp_fm_pool_types::fm_pool_release | ( | type(cp_fm_pool_type), pointer | pool | ) |
releases the given pool (see cp2k/doc/ReferenceCounting.html)
| pool | the pool to release |
Definition at line 155 of file cp_fm_pool_types.F.
| subroutine, public cp_fm_pool_types::fm_pool_create_fm | ( | type(cp_fm_pool_type), intent(in) | pool, |
| type(cp_fm_type), intent(out) | element, | ||
| character(len=*), intent(in), optional | name | ||
| ) |
returns an element, allocating it if none is in the pool
| pool | the pool from where you get the element |
| element | will contain the new element |
| name | the name for the new matrix (optional) |
| name | ... |
Definition at line 183 of file cp_fm_pool_types.F.
| subroutine, public cp_fm_pool_types::fm_pool_give_back_fm | ( | type(cp_fm_pool_type), intent(in) | pool, |
| type(cp_fm_type), intent(inout) | element | ||
| ) |
returns the element to the pool
| pool | the pool where to cache the element |
| element | the element to give back |
Definition at line 223 of file cp_fm_pool_types.F.
| type(cp_fm_struct_type) function, pointer, public cp_fm_pool_types::fm_pool_get_el_struct | ( | type(cp_fm_pool_type), intent(in) | pool | ) |
returns the structure of the elements in this pool
| pool | the pool you are interested in |
Definition at line 248 of file cp_fm_pool_types.F.
| subroutine, public cp_fm_pool_types::fm_pools_dealloc | ( | type(cp_fm_pool_p_type), dimension(:), pointer | pools | ) |
deallocate an array of pools (releasing each pool)
| pools | the pools to release |
Definition at line 285 of file cp_fm_pool_types.F.