mirror of
https://github.com/QuantumPackage/qp2.git
synced 2024-12-22 03:23:29 +01:00
fixed bug in HF_exchange
This commit is contained in:
parent
c8cd161162
commit
bfe52ed56f
@ -15,7 +15,7 @@ prefix = ""
|
|||||||
for f in functionals:
|
for f in functionals:
|
||||||
print """
|
print """
|
||||||
%sif (trim(exchange_functional) == '%s') then
|
%sif (trim(exchange_functional) == '%s') then
|
||||||
energy_x = energy_x_%s"""%(prefix, f, f)
|
energy_x = (1.d0 - HF_exchange ) * energy_x_%s"""%(prefix, f, f)
|
||||||
prefix = "else "
|
prefix = "else "
|
||||||
print """
|
print """
|
||||||
else
|
else
|
||||||
|
@ -17,8 +17,8 @@ prefix = ""
|
|||||||
for f in functionals:
|
for f in functionals:
|
||||||
print """
|
print """
|
||||||
%sif (trim(exchange_functional) == '%s') then
|
%sif (trim(exchange_functional) == '%s') then
|
||||||
potential_x_alpha_ao = potential_x_alpha_ao_%s
|
potential_x_alpha_ao = ( 1.d0 - HF_exchange ) * potential_x_alpha_ao_%s
|
||||||
potential_x_beta_ao = potential_x_beta_ao_%s"""%(prefix, f, f, f)
|
potential_x_beta_ao = ( 1.d0 - HF_exchange ) * potential_x_beta_ao_%s"""%(prefix, f, f, f)
|
||||||
prefix = "else "
|
prefix = "else "
|
||||||
print """
|
print """
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user