a bug in hfx_energy_potential.F for multiple HF sections

Hanning Chen chenh... at gmail.com
Tue Nov 7 04:22:23 UTC 2017


Dear CP2K developers,

  I would like to report a bug when multiple Hartree-Fock (HF) sections are
used.  It is well known that a HF coulomb potential (1/r) can be decomposed
into a short-range potential (erfc(wr)/r) and a long-range potential
(erf(wr)/r). Therefore, the two attached input files named "HF.inp" and
"RS.inp" should afford the same energy. Unfortunately, using the latest
CP2K 6.0 code (svn: 18109), they yield distinct values: HF -37.59 vs RS
-41.92. I think an easy fix is to modify Line 2945 of
hfx_energy_potential.F

        from         energy%ex = 0.5_dp*(ene_x_aa + ene_x_bb) + energy%ex

        to             energy%ex = 0.5_dp*(ene_x_aa + ene_x_bb)

After the easy fix, the two input files achieve the same energy of -37.59.

 Please correct me if there exists any misunderstanding.

  Thanks.

Hanning
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.cp2k.org/archives/cp2k-user/attachments/20171106/049b766f/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: BASIS_SET
Type: application/octet-stream
Size: 189331 bytes
Desc: not available
URL: <https://lists.cp2k.org/archives/cp2k-user/attachments/20171106/049b766f/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: HF.inp
Type: application/octet-stream
Size: 909 bytes
Desc: not available
URL: <https://lists.cp2k.org/archives/cp2k-user/attachments/20171106/049b766f/attachment-0001.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: HF.out
Type: application/octet-stream
Size: 20619 bytes
Desc: not available
URL: <https://lists.cp2k.org/archives/cp2k-user/attachments/20171106/049b766f/attachment-0002.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: POTENTIAL
Type: application/octet-stream
Size: 2630 bytes
Desc: not available
URL: <https://lists.cp2k.org/archives/cp2k-user/attachments/20171106/049b766f/attachment-0003.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: RS_BUGGY.out
Type: application/octet-stream
Size: 20700 bytes
Desc: not available
URL: <https://lists.cp2k.org/archives/cp2k-user/attachments/20171106/049b766f/attachment-0004.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: RS_FIXED.out
Type: application/octet-stream
Size: 20700 bytes
Desc: not available
URL: <https://lists.cp2k.org/archives/cp2k-user/attachments/20171106/049b766f/attachment-0005.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: RS.inp
Type: application/octet-stream
Size: 1320 bytes
Desc: not available
URL: <https://lists.cp2k.org/archives/cp2k-user/attachments/20171106/049b766f/attachment-0006.obj>


More information about the CP2K-user mailing list