Repository navigation
Expand file tree
/
Copy pathgrid_init.cpp
More file actions
71 lines (67 loc) · 1.53 KB
/
Copy pathgrid_init.cpp
File metadata and controls
71 lines (67 loc) · 1.53 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
#include "source_lcao/LCAO_domain.h"
#include "source_pw/module_pwdft/global.h"
#include "source_io/module_parameter/parameter.h"
#include "source_base/global_variable.h"
#include "source_base/parallel_reduce.h"
#include "source_base/timer.h"
namespace LCAO_domain
{
//--------------------------------------------
// prepare grid network for Gint(grid integral)
//--------------------------------------------
void grid_prepare(
const Grid_Technique& gt,
Gint_Gamma &gint_gamma,
Gint_k &gint_k,
const UnitCell& ucell,
const LCAO_Orbitals& orb,
const ModulePW::PW_Basis& rhopw,
const ModulePW::PW_Basis_Big& bigpw)
{
ModuleBase::TITLE("LCAO_domain","grid_prepare");
ModuleBase::timer::tick("LCAO_domain","grid_prepare");
if(PARAM.globalv.gamma_only_local)
{
gint_gamma.prep_grid(
gt,
bigpw.nbx,
bigpw.nby,
bigpw.nbzp,
bigpw.nbzp_start,
rhopw.nxyz,
bigpw.bx,
bigpw.by,
bigpw.bz,
bigpw.bxyz,
bigpw.nbxx,
rhopw.ny,
rhopw.nplane,
rhopw.startz_current,
&ucell,
&orb);
}
else // multiple k-points
{
// cal the grid integration of 'Vl' matrix for l-points algorithms.
gint_k.prep_grid(
gt,
bigpw.nbx,
bigpw.nby,
bigpw.nbzp,
bigpw.nbzp_start,
rhopw.nxyz,
bigpw.bx,
bigpw.by,
bigpw.bz,
bigpw.bxyz,
bigpw.nbxx,
rhopw.ny,
rhopw.nplane,
rhopw.startz_current,
&ucell,
&orb);
}
ModuleBase::timer::tick("LCAO_domain","grid_prepare");
return;
}
}