(git:c5411e0)
Loading...
Searching...
No Matches
pw_pool_types Module Reference

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)
 

Detailed Description

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

Note
The pool could also work without pointers (doing = each time), but I find it very ugly.

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).

History
08.2002 created [fawzi]
Author
Fawzi Mohamed

Function/Subroutine Documentation

◆ pw_pool_create()

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

Parameters
poolthe pool to create
pw_gridthe grid that is used to create the pw
max_cache...
History
08.2002 created [fawzi]
Author
Fawzi Mohamed

Definition at line 172 of file pw_pool_types.F.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ pw_pool_release()

subroutine, public pw_pool_types::pw_pool_release ( type(pw_pool_type), pointer  pool)

releases the given pool (see cp2k/doc/ReferenceCounting.html)

Parameters
poolthe pool to release
History
08.2002 created [fawzi]
Author
Fawzi Mohamed

Definition at line 258 of file pw_pool_types.F.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ pw_pools_copy()

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

Parameters
source_poolsthe pools to copy
target_poolswill hold the copy of the pools
History
08.2002 created [fawzi]
Author
Fawzi Mohamed

Definition at line 1247 of file pw_pool_types.F.

Here is the caller graph for this function:

◆ pw_pools_dealloc()

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)

Parameters
poolsthe pols to deallocate
History
08.2002 created [fawzi]
Author
Fawzi Mohamed

Definition at line 1268 of file pw_pool_types.F.

Here is the call graph for this function:
Here is the caller graph for this function: