mirror of
https://github.com/QuantumPackage/qp2.git
synced 2024-12-21 11:03: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:
|
||||
print """
|
||||
%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 "
|
||||
print """
|
||||
else
|
||||
|
@ -17,8 +17,8 @@ prefix = ""
|
||||
for f in functionals:
|
||||
print """
|
||||
%sif (trim(exchange_functional) == '%s') then
|
||||
potential_x_alpha_ao = potential_x_alpha_ao_%s
|
||||
potential_x_beta_ao = potential_x_beta_ao_%s"""%(prefix, f, f, f)
|
||||
potential_x_alpha_ao = ( 1.d0 - HF_exchange ) * potential_x_alpha_ao_%s
|
||||
potential_x_beta_ao = ( 1.d0 - HF_exchange ) * potential_x_beta_ao_%s"""%(prefix, f, f, f)
|
||||
prefix = "else "
|
||||
print """
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user