CP2K 2.4 (Revision 12889)
Functions | Variables

pw_env_methods Namespace Reference

methods of pw_env that have dependence on qs_env More...

Functions

subroutine, public pw_env_create (pw_env, qs_env, external_para_env, error)
 creates a pw_env, if qs_env is given calls pw_env_rebuild
subroutine, public pw_env_rebuild (pw_env, qs_env, external_para_env, error)
 rebuilds the pw_env data (necessary if cell or cutoffs change)
subroutine compute_max_radius (radius, pw_env, qs_env, error)
 computes the maximum radius
subroutine setup_super_ref_grid (super_ref_pw_grid, mt_super_ref_pw_grid, xc_super_ref_pw_grid, cutilev, grid_span, spherical, cell_ref, para_env, input, my_ncommensurate, uf_grid, print_section, error)
 Initialize the super-reference grid for Tuckerman or xc.

Variables

LOGICAL, parameter, private debug_this_module = .TRUE.
CHARACTER(len=*), parameter,
private 
moduleN = 'pw_env_methods'

Detailed Description

methods of pw_env that have dependence on qs_env

History
10.2002 created [fawzi] JGH (22-Feb-03) PW grid options added 04.2003 added rs grid pools [fawzi] 02.2004 added commensurate grids
Author:
Fawzi Mohamed

Function Documentation

subroutine pw_env_methods::compute_max_radius ( REAL(KIND=dp),dimension(:),intent(out)  radius,
TYPE(pw_env_type),pointer  pw_env,
TYPE(qs_environment_type),pointer  qs_env,
TYPE(cp_error_type),intent(inout)  error 
) [private]

computes the maximum radius

History
10.2010 refactored [Joost VandeVondele]
Author:
Joost VandeVondele

Definition at line 604 of file pw_env_methods.f90.

References CPPostcondition, qs_util::exp_radius(), basis_set_types::get_gto_basis_set(), qs_environment_types::get_qs_env(), qs_rho0_types::get_rho0_mpole(), scp_rspw_methods::maxradius_scp_init(), and timings::timeset().

Referenced by pw_env_rebuild().

Here is the call graph for this function:

Here is the caller graph for this function:

subroutine,public pw_env_methods::pw_env_create ( TYPE(pw_env_type),pointer  pw_env,
TYPE(qs_environment_type),optional,pointer  qs_env,
TYPE(cp_para_env_type),optional,pointer  external_para_env,
TYPE(cp_error_type),intent(inout)  error 
)

creates a pw_env, if qs_env is given calls pw_env_rebuild

Parameters:
pw_envthe pw_env that gets created
qs_envif given it is used to initialize the pw_env
external_para_envif present, use this one instead of the qs_env one so that e.g. a serial pw_env can be made.
errorvariable to control error logging, stopping,... see module cp_error_handling
History
10.2002 created [fawzi]
Author:
Fawzi Mohamed

Definition at line 104 of file pw_env_methods.f90.

References CPPostcondition, pw_env_rebuild(), and timings::timeset().

Referenced by mp2_gpw::mp2_gpw_main(), and qs_environment_methods::qs_env_rebuild_pw_env().

Here is the call graph for this function:

Here is the caller graph for this function:

subroutine,public pw_env_methods::pw_env_rebuild ( TYPE(pw_env_type),pointer  pw_env,
TYPE(qs_environment_type),pointer  qs_env,
TYPE(cp_para_env_type),optional,pointer  external_para_env,
TYPE(cp_error_type),intent(inout)  error 
)

rebuilds the pw_env data (necessary if cell or cutoffs change)

Parameters:
pw_envthe environment to rebuild
qs_envthe qs_env where to get the cell, cutoffs,...
errorvariable to control error logging, stopping,... see module cp_error_handling
History
10.2002 created [fawzi]
Author:
Fawzi Mohamed

Definition at line 150 of file pw_env_methods.f90.

References compute_max_radius(), cp_output_handling::cp_p_file, CPAssert, CPPostcondition, CPPostconditionNoFail, cube_utils::destroy_cube_info(), gaussian_gridlevels::destroy_gaussian_gridlevel(), input_constants::do_pw_grid_blocked_false, pw_grid_types::FULLSPACE, qs_environment_types::get_qs_env(), qs_rho0_types::get_rho0_mpole(), realspace_grid_types::init_input_type(), lgrid_types::lgrid_create(), pw_grids::pw_grid_change(), pw_poisson_types::pw_poisson_create(), pw_poisson_methods::pw_poisson_set(), pw_pool_types::pw_pool_create(), realspace_grid_types::rs_grid_create(), realspace_grid_types::rs_grid_create_descriptor(), realspace_grid_types::rs_grid_print(), realspace_grid_types::rs_grid_release(), realspace_grid_types::rs_grid_release_descriptor(), input_section_types::section_get_ival(), setup_super_ref_grid(), timings::timeset(), input_constants::xc_deriv_collocate, input_constants::xc_deriv_nn10_smooth, input_constants::xc_deriv_nn50_smooth, input_constants::xc_deriv_pw, input_constants::xc_deriv_spline2, input_constants::xc_deriv_spline2_smooth, input_constants::xc_deriv_spline3, input_constants::xc_deriv_spline3_smooth, input_constants::xc_rho_nn10, input_constants::xc_rho_nn50, input_constants::xc_rho_no_smooth, input_constants::xc_rho_spline2_smooth, input_constants::xc_rho_spline3_smooth, and input_constants::xc_vdw_fun_nonloc.

Referenced by pw_env_create().

Here is the call graph for this function:

Here is the caller graph for this function:

subroutine pw_env_methods::setup_super_ref_grid ( TYPE(pw_grid_type),pointer  super_ref_pw_grid,
TYPE(pw_grid_type),pointer  mt_super_ref_pw_grid,
TYPE(pw_grid_type),pointer  xc_super_ref_pw_grid,
REAL(KIND=dp),intent(in)  cutilev,
INTEGER,intent(in)  grid_span,
LOGICAL,intent(in)  spherical,
TYPE(cell_type),pointer  cell_ref,
TYPE(cp_para_env_type),pointer  para_env,
TYPE(section_vals_type),pointer  input,
INTEGER,intent(in)  my_ncommensurate,
LOGICAL,intent(in)  uf_grid,
TYPE(section_vals_type),pointer  print_section,
TYPE(cp_error_type),intent(inout)  error 
) [private]

Initialize the super-reference grid for Tuckerman or xc.

Note:
move somewere else?
Author:
03-2005 Teodoro Laino [teo]

Definition at line 809 of file pw_env_methods.f90.

References input_constants::do_pw_grid_blocked_false, error, pw_grid_info::pw_grid_init_setup(), and input_constants::use_mt.

Referenced by pw_env_rebuild().

Here is the call graph for this function:

Here is the caller graph for this function:


Variable Documentation

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

Definition at line 85 of file pw_env_methods.f90.

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

Definition at line 86 of file pw_env_methods.f90.