FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
abacus-develop/source/source_estate/update_pot.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
243
Star
286
Code
Issues
258
Pull requests
18
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_estate
/
update_pot.cpp
Copy path
More file actions
More file actions
Latest commit
History
History
History
20 lines (19 loc) · 515 Bytes
Breadcrumbs
abacus-develop
/
source
/
source_estate
/
update_pot.cpp
Copy path
File metadata and controls
20 lines (19 loc) · 515 Bytes
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
#
include
"
source_estate/update_pot.h
"
#
include
"
source_cell/cal_ux.h
"
void
elecstate::update_pot
(UnitCell& ucell,
//
unitcell
elecstate::ElecState* &pelec,
//
pointer of electrons
const
Charge &chr,
const
bool
conv_esolver
)
//
charge density
{
if
(!conv_esolver)
{
unitcell::cal_ux
(ucell,
PARAM
.
inp
.
nspin
);
pelec->
pot
->
update_from_charge
(&chr, &ucell);
pelec->
f_en
.
descf
= pelec->
cal_delta_escf
();
}
else
{
pelec->
cal_converged
();
}
}
Back
|
FazBrowse Home
|
New Git URL