![]() |
(git:d18deda)
|
Manages a pool of grids (to be used for example as tmp objects), but can also be used to instantiate grids that are never given back. More...
Data Types | |
type | pw_pool_p_type |
to create arrays of pools More... | |
type | pw_pool_type |
Manages a pool of grids (to be used for example as tmp objects), but can also be used to instantiate grids that are never given back. More... | |
interface | pw_pools_create_pws |
interface | pw_pools_give_back_pws |
Functions/Subroutines | |
subroutine, public | pw_pool_create (pool, pw_grid, max_cache) |
creates a pool for pw | |
subroutine, public | pw_pool_release (pool) |
releases the given pool (see cp2k/doc/ReferenceCounting.html) | |
subroutine, public | pw_pools_copy (source_pools, target_pools) |
copies a multigrid pool, the underlying pools are shared | |
subroutine, public | pw_pools_dealloc (pools) |
deallocates the given pools (releasing each of the underlying pools) | |
Manages a pool of grids (to be used for example as tmp objects), but can also be used to instantiate grids that are never given back.
Multigrid pools are just an array of pw_pools
The pool could be integrated into pw_grid_type, I don't know if it would be a good or bad idea (but would add a circular dependence between pw and pw_grid types).
subroutine, public pw_pool_types::pw_pool_create | ( | type(pw_pool_type), pointer | pool, |
type(pw_grid_type), pointer | pw_grid, | ||
integer, optional | max_cache | ||
) |
creates a pool for pw
pool | the pool to create |
pw_grid | the grid that is used to create the pw |
max_cache | ... |
Definition at line 172 of file pw_pool_types.F.
subroutine, public pw_pool_types::pw_pool_release | ( | type(pw_pool_type), pointer | pool | ) |
releases the given pool (see cp2k/doc/ReferenceCounting.html)
pool | the pool to release |
Definition at line 258 of file pw_pool_types.F.
subroutine, public pw_pool_types::pw_pools_copy | ( | type(pw_pool_p_type), dimension(:), intent(in) | source_pools, |
type(pw_pool_p_type), dimension(:), pointer | target_pools | ||
) |
copies a multigrid pool, the underlying pools are shared
source_pools | the pools to copy |
target_pools | will hold the copy of the pools |
Definition at line 1246 of file pw_pool_types.F.
subroutine, public pw_pool_types::pw_pools_dealloc | ( | type(pw_pool_p_type), dimension(:), pointer | pools | ) |
deallocates the given pools (releasing each of the underlying pools)
pools | the pols to deallocate |
Definition at line 1267 of file pw_pool_types.F.