Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
qbox
qbox-public
Commits
6957cd6e
Commit
6957cd6e
authored
Jul 01, 2022
by
Francois Gygi
Browse files
Fix vx1 and vx2 in RSHFunctional::RSH_exchange
parent
21d1341e
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/RSHFunctional.cpp
View file @
6957cd6e
...
...
@@ -659,11 +659,11 @@ void RSHFunctional::RSH_exchange(const double rho, const double grad,
(
alpha_RSH_
-
beta_RSH_
)
*
fxhse
);
// calculate potential
*
vx1
=
third4
*
exLDA
*
(
fxpbe
-
s2
*
fs
-
a_ex
*
(
fx
hs
e
-
s
*
dfx_ds
+
0.25
*
kF
*
dfx_dkf
)
)
;
*
vx2
=
-
exLDA
*
(
fs
/
(
rho
*
4.0
*
kF
*
kF
)
-
a_ex
*
dfx_ds
/
(
2.0
*
kF
*
grad
)
);
*
vx1
=
third4
*
exLDA
*
(
(
1.0
-
alpha_RSH_
)
*
(
fx
pb
e
-
s
2
*
fs
)
+
(
alpha_RSH_
-
beta_RSH_
)
*
(
fxhse
-
s
*
dfx_ds
+
0.25
*
kF
*
dfx_dkf
)
);
*
vx2
=
-
exLDA
*
(
(
1.0
-
alpha_RSH_
)
*
fs
/
(
rho
*
4.0
*
kF
*
kF
)
+
(
alpha_RSH_
-
beta_RSH_
)
*
dfx_ds
/
(
2.0
*
kF
*
grad
)
);
}
////////////////////////////////////////////////////////////////////////////////
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment