FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
abacus-develop/source/source_esolver/pw_others.cpp at develop · deepmodeling/abacus-develop · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
deepmodeling
/
abacus-develop
Public
forked from
abacusmodeling/abacus-develop
Notifications
You must be signed in to change notification settings
Fork
247
Star
291
Code
Issues
251
Pull requests
12
Discussions
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Discussions
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
abacus-develop
/
source
/
source_esolver
/
pw_others.cpp
Copy path
More file actions
More file actions
Latest commit
History
History
History
57 lines (49 loc) · 1.99 KB
Breadcrumbs
abacus-develop
/
source
/
source_esolver
/
pw_others.cpp
Copy path
File metadata and controls
57 lines (49 loc) · 1.99 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
#
include
"
esolver_ks_pw.h
"
#
include
"
source_base/formatter.h
"
#
include
"
source_base/module_device/device.h
"
#
include
"
source_io/module_bessel/numerical_descriptor.h
"
//
mohan add 2025-03-06
#
include
"
source_io/module_output/cal_test.h
"
namespace
ModuleESolver
{
template
<
typename
T,
typename
Device>
void
ESolver_KS_PW<T, Device>::others(BaseCell& basecell,
const
int
istep)
{
basecell.
require_kind
(BaseCell::Kind::unitcell, __FUNCTION__);
UnitCell& ucell =
static_cast
<UnitCell&>(basecell);
ModuleBase::TITLE
(
"
ESolver_KS_PW
"
,
"
others
"
);
const
std::string cal_type =
this
->
inp_
->
calculation
;
if
(cal_type ==
"
test_memory
"
)
{
Cal_Test::test_memory
(ucell.
nat
,
ucell.
ntype
,
ucell.
GGT
,
this
->
pw_rho
,
this
->
pw_wfc
,
this
->
p_chgmix
->
get_mixing_mode
(),
this
->
p_chgmix
->
get_mixing_ndim
());
}
else
if
(cal_type ==
"
gen_bessel
"
)
{
Numerical_Descriptor nc;
nc.
output_descriptor
(ucell,
*(
this
->
stp
.
psi_cpu
),
this
->
inp_
->
bessel_descriptor_lmax
,
this
->
inp_
->
bessel_descriptor_rcut
,
this
->
inp_
->
bessel_descriptor_tolerence
,
this
->
kv
.
get_nks
());
ModuleBase::GlobalFunc::DONE
(GlobalV::ofs_running,
"
GENERATE DESCRIPTOR FOR DEEPKS
"
);
}
else
{
ModuleBase::WARNING_QUIT
(
"
ESolver_KS_PW::others
"
,
"
CALCULATION type not supported
"
);
}
return
;
}
template
class
ESolver_KS_PW
<std::
complex
<
float
>, base_device::
DEVICE_CPU
>;
template
class
ESolver_KS_PW
<std::
complex
<
double
>, base_device::
DEVICE_CPU
>;
#
if
((defined __CUDA) || (defined __ROCM))
template
class
ESolver_KS_PW
<std::
complex
<
float
>, base_device::
DEVICE_GPU
>;
template
class
ESolver_KS_PW
<std::
complex
<
double
>, base_device::
DEVICE_GPU
>;
#
endif
}
//
namespace ModuleESolver
Back
|
FazBrowse Home
|
New Git URL