CP2K 2.4 (Revision 12889)
Classes | Functions | Variables

qs_matrix_pools Namespace Reference

wrapper for the pools of matrixes More...

Classes

struct  qs_matrix_pools_type
 container for the pools of matrixes used by qs More...

Functions

subroutine, public mpools_retain (mpools, error)
 retains the given qs_matrix_pools_type
subroutine, public mpools_release (mpools, error)
 releases the given mpools
subroutine, public mpools_set (mpools, ao_mo_fm_pools, ao_ao_fm_pools, mo_mo_fm_pools, ao_mosub_fm_pools, mosub_mosub_fm_pools, error)
 sets various attributes of the mpools
subroutine, public mpools_get (mpools, ao_mo_fm_pools, ao_ao_fm_pools, mo_mo_fm_pools, ao_mosub_fm_pools, mosub_mosub_fm_pools, maxao_maxmo_fm_pool, maxao_maxao_fm_pool, maxmo_maxmo_fm_pool, error)
 returns various attributes of the mpools (notably the pools contained in it)
subroutine, public mpools_create (mpools, error)
 creates a mpools
subroutine, public mpools_rebuild_fm_pools (mpools, mos, blacs_env, para_env, nrow_block, ncol_block, nmosub, error)
 rebuilds the pools of the (ao x mo, ao x ao , mo x mo) full matrixes

Variables

LOGICAL, parameter, private debug_this_module = .TRUE.
CHARACTER(len=*), parameter,
private 
moduleN = 'qs_matrix_pools'
INTEGER, save, private last_mpools_id = 0

Detailed Description

wrapper for the pools of matrixes

History
05.2003 created [fawzi]
Author:
fawzi

Function Documentation

subroutine,public qs_matrix_pools::mpools_create ( TYPE(qs_matrix_pools_type),pointer  mpools,
TYPE(cp_error_type),intent(inout)  error 
)

creates a mpools

Parameters:
mpoolsthe mpools to create
errorvariable to control error logging, stopping,... see module cp_error_handling
History
04.2003 created [fawzi]
Author:
fawzi

Definition at line 287 of file qs_matrix_pools.f90.

References CPPostcondition, and last_mpools_id.

Referenced by mp2::mp2_main(), and mpools_rebuild_fm_pools().

Here is the caller graph for this function:

subroutine,public qs_matrix_pools::mpools_get ( TYPE(qs_matrix_pools_type),pointer  mpools,
TYPE(cp_fm_pool_p_type),dimension(:),optional,pointer  ao_mo_fm_pools,
TYPE(cp_fm_pool_p_type),dimension(:),optional,pointer  ao_ao_fm_pools,
TYPE(cp_fm_pool_p_type),dimension(:),optional,pointer  mo_mo_fm_pools,
TYPE(cp_fm_pool_p_type),dimension(:),optional,pointer  ao_mosub_fm_pools,
TYPE(cp_fm_pool_p_type),dimension(:),optional,pointer  mosub_mosub_fm_pools,
TYPE(cp_fm_pool_type),optional,pointer  maxao_maxmo_fm_pool,
TYPE(cp_fm_pool_type),optional,pointer  maxao_maxao_fm_pool,
TYPE(cp_fm_pool_type),optional,pointer  maxmo_maxmo_fm_pool,
TYPE(cp_error_type),intent(inout)  error 
)
subroutine,public qs_matrix_pools::mpools_rebuild_fm_pools ( TYPE(qs_matrix_pools_type),pointer  mpools,
TYPE(mo_set_p_type),dimension(:),pointer  mos,
TYPE(cp_blacs_env_type),pointer  blacs_env,
TYPE(cp_para_env_type),pointer  para_env,
INTEGER,intent(in)  nrow_block,
INTEGER,intent(in)  ncol_block,
INTEGER,dimension(2),intent(in),optional  nmosub,
TYPE(cp_error_type),intent(inout)  error 
)

rebuilds the pools of the (ao x mo, ao x ao , mo x mo) full matrixes

Parameters:
mpoolsthe environement where the pools should be rebuilt
mosthe molecular orbitals (qs_envc), must contain up to date nmo and nao
blacs_envthe blacs environment of the full matrixes
para_envthe parallel environment of the matrixes
nrow_blocknumber of rows of a block for for the block cyclic distribution of the elements in parallel
ncol_blocknumber of cols of a block for for the block cyclic distribution of the elements in parallel
nmosubnumber of the orbitals for the creation of the pools containing only a subset of mos (OPTIONAL)
errorvariable to control error logging, stopping,... see module cp_error_handling
History
08.2002 created [fawzi] 04.2005 added pools for a subset of mos [MI]
Author:
Fawzi Mohamed

Definition at line 331 of file qs_matrix_pools.f90.

References cp_fm_struct::cp_fm_struct_create(), CPPostcondition, error, qs_mo_types::get_mo_set(), mpools_create(), and timings::timeset().

Referenced by qs_environment_methods::qs_env_setup().

Here is the call graph for this function:

Here is the caller graph for this function:

subroutine,public qs_matrix_pools::mpools_release ( TYPE(qs_matrix_pools_type),pointer  mpools,
TYPE(cp_error_type),intent(inout)  error 
)

releases the given mpools

Parameters:
mpoolsthe matrix pools type to retain
errorvariable to control error logging, stopping,... see module cp_error_handling
History
04.2003 created [fawzi]
Author:
fawzi

Definition at line 116 of file qs_matrix_pools.f90.

References CPPostconditionNoFail, and CPPreconditionNoFail.

subroutine,public qs_matrix_pools::mpools_retain ( TYPE(qs_matrix_pools_type),pointer  mpools,
TYPE(cp_error_type),intent(inout)  error 
)

retains the given qs_matrix_pools_type

Parameters:
mpoolsthe matrix pools type to retain
errorvariable to control error logging, stopping,... see module cp_error_handling
History
04.2003 created [fawzi]
Author:
fawzi

Definition at line 89 of file qs_matrix_pools.f90.

References CPPreconditionNoFail.

subroutine,public qs_matrix_pools::mpools_set ( TYPE(qs_matrix_pools_type),pointer  mpools,
TYPE(cp_fm_pool_p_type),dimension(:),optional,pointer  ao_mo_fm_pools,
TYPE(cp_fm_pool_p_type),dimension(:),optional,pointer  ao_ao_fm_pools,
TYPE(cp_fm_pool_p_type),dimension(:),optional,pointer  mo_mo_fm_pools,
TYPE(cp_fm_pool_p_type),dimension(:),optional,pointer  ao_mosub_fm_pools,
TYPE(cp_fm_pool_p_type),dimension(:),optional,pointer  mosub_mosub_fm_pools,
TYPE(cp_error_type),intent(inout)  error 
)

sets various attributes of the mpools

Parameters:
errorvariable to control error logging, stopping,... see module cp_error_handling
History
04.2003 created [fawzi]
Author:
fawzi

Definition at line 156 of file qs_matrix_pools.f90.

References error.


Variable Documentation

LOGICAL,parameter,private qs_matrix_pools::debug_this_module = .TRUE.

Definition at line 37 of file qs_matrix_pools.f90.

Definition at line 39 of file qs_matrix_pools.f90.

Referenced by mpools_create().

CHARACTER(len=*),parameter,private qs_matrix_pools::moduleN = 'qs_matrix_pools'

Definition at line 38 of file qs_matrix_pools.f90.