ddsolvation / ddX

Fast continuum solvation based on domain decomposition
https://ddsolvation.github.io/ddX/
GNU Lesser General Public License v3.0
21 stars 4 forks source link

LPB status between v0.3.0 and v0.4.1 #142

Closed loriab closed 1 year ago

loriab commented 1 year ago

Hi, over at Psi4, Michael kindly added the LPB feature and upgraded our interface from v0.1.3 to v0.3 (https://github.com/psi4/psi4/pull/2918/files). All our ddx tests pass nicely at v0.3.0. #140 here, though, looks like an important fix implemented for v0.4.1. When I run psi's suite against v0.4.1 (below), only the LPB tests fail (failure sizes further below).

Since the #140 fix involves a scaling factor, I'm wondering if the interface needs changing on the Psi4 side? Or perhaps just our reference values need changing? We're doing a release next week, so if you've any advice I'd appreciate it. Easiest thing on our side is to just pin to v0.3, but I'd hate to do that if v0.4.1 is right and our v0.3 ref values are wrong. We also could temporarily disable the LPB if this gets too tangled. Thanks for any advice!

(py311cf) psilocaluser@bash:psinet:/psi/gits/hrw-cf/objdir_py311cf: (master) pytest -v -m ddx ../tests/
=========================================================================================================== test session starts ============================================================================================================
platform linux -- Python 3.11.0, pytest-7.2.0, pluggy-1.0.0 -- /psi/toolchainconda/envs/py311cf/bin/python3.1
cachedir: .pytest_cache
rootdir: /psi/gits/hrw-cf, configfile: pytest.ini
plugins: xdist-3.0.2, typeguard-2.13.3
collected 7624 items / 7607 deselected / 17 selected                                                                                                                                                                                       

../tests/pytests/test_ddx.py::test_ddx_fock_build[h] PASSED                                                                                                                                                                          [  5%]
../tests/pytests/test_ddx.py::test_ddx_fock_build[h2] PASSED                                                                                                                                                                         [ 11%]
../tests/pytests/test_ddx.py::test_ddx_fock_build[h2lpb] FAILED                                                                                                                                                                      [ 17%]
../tests/pytests/test_ddx.py::test_ddx_limiting_cases PASSED                                                                                                                                                                         [ 23%]
../tests/pytests/test_ddx.py::test_ddx_rhf_reference[h2o] PASSED                                                                                                                                                                     [ 29%]
../tests/pytests/test_ddx.py::test_ddx_rhf_reference[fcm] PASSED                                                                                                                                                                     [ 35%]
../tests/pytests/test_ddx.py::test_ddx_rhf_reference[fcmeps] PASSED                                                                                                                                                                  [ 41%]
../tests/pytests/test_ddx.py::test_ddx_rhf_reference[fcmepseta] PASSED                                                                                                                                                               [ 47%]
../tests/pytests/test_ddx.py::test_ddx_rhf_reference[benzene] PASSED                                                                                                                                                                 [ 52%]
../tests/pytests/test_ddx.py::test_ddx_rhf_consistency[h2o-cosmo] PASSED                                                                                                                                                             [ 58%]
../tests/pytests/test_ddx.py::test_ddx_rhf_consistency[fcm-pcm] PASSED                                                                                                                                                               [ 64%]
../tests/pytests/test_ddx.py::test_ddx_rhf_consistency[nh3-lpb] FAILED                                                                                                                                                               [ 70%]
../tests/pytests/test_ddx.py::test_ddx_eri_algorithms[pk] PASSED                                                                                                                                                                     [ 76%]
../tests/pytests/test_ddx.py::test_ddx_eri_algorithms[out_of_core] PASSED                                                                                                                                                            [ 82%]
../tests/pytests/test_ddx.py::test_ddx_eri_algorithms[direct] PASSED                                                                                                                                                                 [ 88%]
../tests/pytests/test_ddx.py::test_ddx_eri_algorithms[df] PASSED                                                                                                                                                                     [ 94%]
../tests/pytests/test_ddx.py::test_ddx_eri_algorithms[cd] PASSED                                                                                                                                                                     [100%]

assert 1.0019017425103895e-05 < 5e-06 where False = compare_values(-56.19598597466339, -56.198804366565064, 9, 'Total SCF energy with DDX versus reference data')

(py311cf) psilocaluser@bash:psinet:/psi/gits/hrw-cf/objdir_py311cf: (master) conda list ddx
# packages in environment at /psi/toolchainconda/envs/py311cf:
#
# Name                    Version                   Build  Channel
pyddx                     0.4.1           py311h8bf7d11_0    conda-forge
mfherbst commented 1 year ago

I'm not sure about the h2lpb case, but the nh3-lpb is for internal consistency, which is indeed broken because of the update, so that case is fine to fail. As I said over in psi4/psi4#2940, I'll take a look over the weekend.

mfherbst commented 1 year ago

Better discussed in https://github.com/psi4/psi4/pull/2952