From: Magnus Lundborg Date: Fri, 17 Sep 2021 07:20:43 +0000 (+0200) Subject: [RFC] Change nonbonded-fep-test reference data to analytical Ewald X-Git-Url: http://biod.pnpi.spb.ru/gitweb/?a=commitdiff_plain;h=7afd3ea76d5d3610cfa49dfab3dc802ac4d2a007;p=alexxy%2Fgromacs.git [RFC] Change nonbonded-fep-test reference data to analytical Ewald The nonbonded-fep-test reference data for Ewald type interactions was generated using tabulated interactions. There have a max error of 0.1*ewald_trol=1e-6. In preparation for the switch to analytical corrections, the reference data is now generated with analytical corrections. The required a tolerance in double precision of 1e-6. --- diff --git a/src/gromacs/gmxlib/nonbonded/tests/nb_free_energy.cpp b/src/gromacs/gmxlib/nonbonded/tests/nb_free_energy.cpp index 359af0f238..3ffc4d9ab1 100644 --- a/src/gromacs/gmxlib/nonbonded/tests/nb_free_energy.cpp +++ b/src/gromacs/gmxlib/nonbonded/tests/nb_free_energy.cpp @@ -411,8 +411,12 @@ protected: softcoreAlpha_ = std::get<3>(GetParam()); softcoreCoulomb_ = std::get<4>(GetParam()); + // Note that the reference data for Ewald type interactions has been generated + // with accurate analytical approximations for the long-range corrections. + // When the free-energy kernel switches from tabulated to analytical corrections, + // the double precision tolerance can be tightend to 1e-11. test::FloatingPointTolerance tolerance( - input_.floatToler, input_.doubleToler, 1.0e-6, 1.0e-12, 10000, 100, false); + input_.floatToler, input_.doubleToler, 1.0e-6, 1.0e-6, 10000, 100, false); checker_.setDefaultTolerance(tolerance); } diff --git a/src/gromacs/gmxlib/nonbonded/tests/refdata/NBInteraction_NonbondedFepTest_testKernel_24.xml b/src/gromacs/gmxlib/nonbonded/tests/refdata/NBInteraction_NonbondedFepTest_testKernel_24.xml index 47ea9c0230..9ec872321a 100644 --- a/src/gromacs/gmxlib/nonbonded/tests/refdata/NBInteraction_NonbondedFepTest_testKernel_24.xml +++ b/src/gromacs/gmxlib/nonbonded/tests/refdata/NBInteraction_NonbondedFepTest_testKernel_24.xml @@ -2,37 +2,37 @@ 11.244864181870648 - -91.43161122279804 - 60.44738282828024 + -91.431611236311795 + 60.447382846936364 -7.1291612299081022 4 - -209.02699861275136 - -313.54049791912666 - 418.05399722550226 + -209.02696105480408 + -313.5404415822058 + 418.05392210960781 - -40.828136036689216 - -61.242204055033739 - -81.656272073378346 + -40.82809656232098 + -61.242144843481384 + -81.656193124641874 - 40.828136036689173 - 61.242204055033781 - 81.656272073378346 + 40.828096562320937 + 61.242144843481427 + 81.656193124641874 - 209.02699861275138 - 313.54049791912661 - -418.05399722550226 + 209.02696105480413 + 313.54044158220574 + -418.05392210960781 - -209.02699861275136 - -313.54049791912666 - 418.05399722550226 + -209.02696105480408 + -313.5404415822058 + 418.05392210960781 diff --git a/src/gromacs/gmxlib/nonbonded/tests/refdata/NBInteraction_NonbondedFepTest_testKernel_25.xml b/src/gromacs/gmxlib/nonbonded/tests/refdata/NBInteraction_NonbondedFepTest_testKernel_25.xml index 47ea9c0230..9ec872321a 100644 --- a/src/gromacs/gmxlib/nonbonded/tests/refdata/NBInteraction_NonbondedFepTest_testKernel_25.xml +++ b/src/gromacs/gmxlib/nonbonded/tests/refdata/NBInteraction_NonbondedFepTest_testKernel_25.xml @@ -2,37 +2,37 @@ 11.244864181870648 - -91.43161122279804 - 60.44738282828024 + -91.431611236311795 + 60.447382846936364 -7.1291612299081022 4 - -209.02699861275136 - -313.54049791912666 - 418.05399722550226 + -209.02696105480408 + -313.5404415822058 + 418.05392210960781 - -40.828136036689216 - -61.242204055033739 - -81.656272073378346 + -40.82809656232098 + -61.242144843481384 + -81.656193124641874 - 40.828136036689173 - 61.242204055033781 - 81.656272073378346 + 40.828096562320937 + 61.242144843481427 + 81.656193124641874 - 209.02699861275138 - 313.54049791912661 - -418.05399722550226 + 209.02696105480413 + 313.54044158220574 + -418.05392210960781 - -209.02699861275136 - -313.54049791912666 - 418.05399722550226 + -209.02696105480408 + -313.5404415822058 + 418.05392210960781 diff --git a/src/gromacs/gmxlib/nonbonded/tests/refdata/NBInteraction_NonbondedFepTest_testKernel_26.xml b/src/gromacs/gmxlib/nonbonded/tests/refdata/NBInteraction_NonbondedFepTest_testKernel_26.xml index 6f31f86b81..2621705e59 100644 --- a/src/gromacs/gmxlib/nonbonded/tests/refdata/NBInteraction_NonbondedFepTest_testKernel_26.xml +++ b/src/gromacs/gmxlib/nonbonded/tests/refdata/NBInteraction_NonbondedFepTest_testKernel_26.xml @@ -2,37 +2,37 @@ 11.244864181870655 - -91.43161122279804 - 51.055517365549605 + -91.431611236311795 + 51.0555173842057 -18.644737807620768 4 - -209.02699861275141 - -313.54049791912678 - 418.05399722550248 + -209.02696105480416 + -313.54044158220591 + 418.05392210960798 - -40.828136036689187 - -61.242204055033682 - -81.656272073378275 + -40.828096562320951 + -61.242144843481327 + -81.656193124641803 - 40.828136036689138 - 61.242204055033731 - 81.656272073378275 + 40.828096562320901 + 61.242144843481377 + 81.656193124641803 - 209.02699861275147 - 313.54049791912672 - -418.05399722550248 + 209.02696105480422 + 313.54044158220586 + -418.05392210960798 - -209.02699861275141 - -313.54049791912678 - 418.05399722550248 + -209.02696105480416 + -313.54044158220591 + 418.05392210960798 diff --git a/src/gromacs/gmxlib/nonbonded/tests/refdata/NBInteraction_NonbondedFepTest_testKernel_27.xml b/src/gromacs/gmxlib/nonbonded/tests/refdata/NBInteraction_NonbondedFepTest_testKernel_27.xml index 02025451ab..a47453d614 100644 --- a/src/gromacs/gmxlib/nonbonded/tests/refdata/NBInteraction_NonbondedFepTest_testKernel_27.xml +++ b/src/gromacs/gmxlib/nonbonded/tests/refdata/NBInteraction_NonbondedFepTest_testKernel_27.xml @@ -2,37 +2,37 @@ 11.244864181870655 - -91.43161122279804 - 60.44738282828024 + -91.431611236311795 + 60.447382846936364 -18.031583913092721 4 - -209.02699861275141 - -313.54049791912678 - 418.05399722550248 + -209.02696105480416 + -313.54044158220591 + 418.05392210960798 - -40.828136036689187 - -61.242204055033682 - -81.656272073378275 + -40.828096562320951 + -61.242144843481327 + -81.656193124641803 - 40.828136036689138 - 61.242204055033731 - 81.656272073378275 + 40.828096562320901 + 61.242144843481377 + 81.656193124641803 - 209.02699861275147 - 313.54049791912672 - -418.05399722550248 + 209.02696105480422 + 313.54044158220586 + -418.05392210960798 - -209.02699861275141 - -313.54049791912678 - 418.05399722550248 + -209.02696105480416 + -313.54044158220591 + 418.05392210960798 diff --git a/src/gromacs/gmxlib/nonbonded/tests/refdata/NBInteraction_NonbondedFepTest_testKernel_28.xml b/src/gromacs/gmxlib/nonbonded/tests/refdata/NBInteraction_NonbondedFepTest_testKernel_28.xml index 4b877de28d..f3d182d973 100644 --- a/src/gromacs/gmxlib/nonbonded/tests/refdata/NBInteraction_NonbondedFepTest_testKernel_28.xml +++ b/src/gromacs/gmxlib/nonbonded/tests/refdata/NBInteraction_NonbondedFepTest_testKernel_28.xml @@ -3,36 +3,36 @@ 7.6802835669165956 -61.20791980865792 - 60.44738282828024 + 60.447382846936364 -7.1291612299081022 4 - -124.92756732472033 - -187.39135098708019 - 418.05399722550231 + -124.92752880856258 + -187.39129321284355 + 418.05392210960781 - -20.414068018344608 - -30.621102027516869 - -40.828136036689173 + -20.41404828116049 + -30.621072421740692 + -40.828096562320937 - -21.635647625670902 - -32.453471438506362 - -43.271295251341805 + -21.63566784196027 + -32.453501762940419 + -43.27133568392054 - 166.97728296873584 - 250.46592445310341 - -333.95456593747133 + 166.97724493168334 + 250.46586739752468 + -333.95448986336635 - -124.92756732472033 - -187.39135098708019 - 418.05399722550231 + -124.92752880856258 + -187.39129321284355 + 418.05392210960781 diff --git a/src/gromacs/gmxlib/nonbonded/tests/refdata/NBInteraction_NonbondedFepTest_testKernel_29.xml b/src/gromacs/gmxlib/nonbonded/tests/refdata/NBInteraction_NonbondedFepTest_testKernel_29.xml index 4b877de28d..f3d182d973 100644 --- a/src/gromacs/gmxlib/nonbonded/tests/refdata/NBInteraction_NonbondedFepTest_testKernel_29.xml +++ b/src/gromacs/gmxlib/nonbonded/tests/refdata/NBInteraction_NonbondedFepTest_testKernel_29.xml @@ -3,36 +3,36 @@ 7.6802835669165956 -61.20791980865792 - 60.44738282828024 + 60.447382846936364 -7.1291612299081022 4 - -124.92756732472033 - -187.39135098708019 - 418.05399722550231 + -124.92752880856258 + -187.39129321284355 + 418.05392210960781 - -20.414068018344608 - -30.621102027516869 - -40.828136036689173 + -20.41404828116049 + -30.621072421740692 + -40.828096562320937 - -21.635647625670902 - -32.453471438506362 - -43.271295251341805 + -21.63566784196027 + -32.453501762940419 + -43.27133568392054 - 166.97728296873584 - 250.46592445310341 - -333.95456593747133 + 166.97724493168334 + 250.46586739752468 + -333.95448986336635 - -124.92756732472033 - -187.39135098708019 - 418.05399722550231 + -124.92752880856258 + -187.39129321284355 + 418.05392210960781 diff --git a/src/gromacs/gmxlib/nonbonded/tests/refdata/NBInteraction_NonbondedFepTest_testKernel_30.xml b/src/gromacs/gmxlib/nonbonded/tests/refdata/NBInteraction_NonbondedFepTest_testKernel_30.xml index a91ddbd94f..a87d688d53 100644 --- a/src/gromacs/gmxlib/nonbonded/tests/refdata/NBInteraction_NonbondedFepTest_testKernel_30.xml +++ b/src/gromacs/gmxlib/nonbonded/tests/refdata/NBInteraction_NonbondedFepTest_testKernel_30.xml @@ -3,36 +3,36 @@ 5.7877856110730166 -63.863612325243423 - 59.732379057290416 + 59.73237907594654 -5.7498617329574744 4 - -53.906398242222338 - -80.859597363333336 - 281.95880023408944 + -53.906359726064579 + -80.859539589096698 + 281.95872511819493 - -21.900853311740317 - -32.851279967610424 - -43.801706623480584 + -21.900833574556199 + -32.851250361834246 + -43.801667149112347 - -21.635647625670948 - -32.453471438506433 - -43.271295251341897 + -21.635667841960316 + -32.453501762940483 + -43.271335683920633 - 97.442899179633599 - 146.16434876945019 - -194.88579835926697 + 97.442861142581094 + 146.16429171387142 + -194.88572228516199 - -53.906398242222338 - -80.859597363333336 - 281.95880023408944 + -53.906359726064579 + -80.859539589096698 + 281.95872511819493 diff --git a/src/gromacs/gmxlib/nonbonded/tests/refdata/NBInteraction_NonbondedFepTest_testKernel_31.xml b/src/gromacs/gmxlib/nonbonded/tests/refdata/NBInteraction_NonbondedFepTest_testKernel_31.xml index dddf605d99..3a9419c2ea 100644 --- a/src/gromacs/gmxlib/nonbonded/tests/refdata/NBInteraction_NonbondedFepTest_testKernel_31.xml +++ b/src/gromacs/gmxlib/nonbonded/tests/refdata/NBInteraction_NonbondedFepTest_testKernel_31.xml @@ -3,36 +3,36 @@ 5.853205445506128 -61.20791980865792 - 60.44738282828024 + 60.447382846936364 -5.8511380489996379 4 - -78.08967666351046 - -117.13451499526545 - 418.05399722550243 + -78.08963814735273 + -117.13445722102884 + 418.05392210960792 - -43.833013348949535 - -65.749520023424211 - -87.666026697898971 + -43.832993611765417 + -65.749490417648033 + -87.665987223530735 - -21.635647625670948 - -32.453471438506433 - -43.271295251341897 + -21.635667841960316 + -32.453501762940483 + -43.271335683920633 - 143.55833763813095 - 215.3375064571961 - -287.11667527626156 + 143.55829960107846 + 215.33744940161736 + -287.11659920215658 - -78.08967666351046 - -117.13451499526545 - 418.05399722550243 + -78.08963814735273 + -117.13445722102884 + 418.05392210960792 diff --git a/src/gromacs/gmxlib/nonbonded/tests/refdata/NBInteraction_NonbondedFepTest_testKernel_32.xml b/src/gromacs/gmxlib/nonbonded/tests/refdata/NBInteraction_NonbondedFepTest_testKernel_32.xml index 60b2660c74..e893fdf240 100644 --- a/src/gromacs/gmxlib/nonbonded/tests/refdata/NBInteraction_NonbondedFepTest_testKernel_32.xml +++ b/src/gromacs/gmxlib/nonbonded/tests/refdata/NBInteraction_NonbondedFepTest_testKernel_32.xml @@ -3,14 +3,14 @@ 4.1157029519625441 -30.9842283945178 - 60.44738282828024 + 60.447382846936364 -7.1291612299081022 4 - -40.828136036689301 - -61.242204055033611 - 418.05399722550226 + -40.828096562321079 + -61.242144843481285 + 418.05392210960781 0 @@ -18,21 +18,21 @@ 0 - -84.099431288030971 - -126.14914693204652 - -168.19886257606194 + -84.099432246241477 + -126.14914836936227 + -168.19886449248295 - 124.92756732472027 - 187.39135098708013 - -249.85513464944029 + 124.92752880856256 + 187.39129321284355 + -249.85505761712483 - -40.828136036689301 - -61.242204055033611 - 418.05399722550226 + -40.828096562321079 + -61.242144843481285 + 418.05392210960781 diff --git a/src/gromacs/gmxlib/nonbonded/tests/refdata/NBInteraction_NonbondedFepTest_testKernel_33.xml b/src/gromacs/gmxlib/nonbonded/tests/refdata/NBInteraction_NonbondedFepTest_testKernel_33.xml index 60b2660c74..e893fdf240 100644 --- a/src/gromacs/gmxlib/nonbonded/tests/refdata/NBInteraction_NonbondedFepTest_testKernel_33.xml +++ b/src/gromacs/gmxlib/nonbonded/tests/refdata/NBInteraction_NonbondedFepTest_testKernel_33.xml @@ -3,14 +3,14 @@ 4.1157029519625441 -30.9842283945178 - 60.44738282828024 + 60.447382846936364 -7.1291612299081022 4 - -40.828136036689301 - -61.242204055033611 - 418.05399722550226 + -40.828096562321079 + -61.242144843481285 + 418.05392210960781 0 @@ -18,21 +18,21 @@ 0 - -84.099431288030971 - -126.14914693204652 - -168.19886257606194 + -84.099432246241477 + -126.14914836936227 + -168.19886449248295 - 124.92756732472027 - 187.39135098708013 - -249.85513464944029 + 124.92752880856256 + 187.39129321284355 + -249.85505761712483 - -40.828136036689301 - -61.242204055033611 - 418.05399722550226 + -40.828096562321079 + -61.242144843481285 + 418.05392210960781 diff --git a/src/gromacs/gmxlib/nonbonded/tests/refdata/NBInteraction_NonbondedFepTest_testKernel_34.xml b/src/gromacs/gmxlib/nonbonded/tests/refdata/NBInteraction_NonbondedFepTest_testKernel_34.xml index 1396356606..dd2905e0e1 100644 --- a/src/gromacs/gmxlib/nonbonded/tests/refdata/NBInteraction_NonbondedFepTest_testKernel_34.xml +++ b/src/gromacs/gmxlib/nonbonded/tests/refdata/NBInteraction_NonbondedFepTest_testKernel_34.xml @@ -3,14 +3,14 @@ 4.1157029519625468 -30.9842283945178 - 72.786031951350168 + 72.78603197000632 -1.6552057559765398 4 - -40.828136036689301 - -61.242204055033611 - 418.05399722550243 + -40.828096562321036 + -61.242144843481228 + 418.05392210960792 0 @@ -18,21 +18,21 @@ 0 - -84.099431288031028 - -126.14914693204661 - -168.19886257606206 + -84.099432246241534 + -126.14914836936235 + -168.19886449248307 - 124.92756732472033 - 187.39135098708022 - -249.85513464944037 + 124.92752880856257 + 187.39129321284358 + -249.85505761712488 - -40.828136036689301 - -61.242204055033611 - 418.05399722550243 + -40.828096562321036 + -61.242144843481228 + 418.05392210960792 diff --git a/src/gromacs/gmxlib/nonbonded/tests/refdata/NBInteraction_NonbondedFepTest_testKernel_35.xml b/src/gromacs/gmxlib/nonbonded/tests/refdata/NBInteraction_NonbondedFepTest_testKernel_35.xml index 566fe07a5e..f827e25f2e 100644 --- a/src/gromacs/gmxlib/nonbonded/tests/refdata/NBInteraction_NonbondedFepTest_testKernel_35.xml +++ b/src/gromacs/gmxlib/nonbonded/tests/refdata/NBInteraction_NonbondedFepTest_testKernel_35.xml @@ -3,14 +3,14 @@ 4.1157029519625468 -30.9842283945178 - 60.44738282828024 + 60.447382846936364 -1.7826801999959161 4 - -40.828136036689301 - -61.242204055033611 - 418.05399722550243 + -40.828096562321036 + -61.242144843481228 + 418.05392210960792 0 @@ -18,21 +18,21 @@ 0 - -84.099431288031028 - -126.14914693204661 - -168.19886257606206 + -84.099432246241534 + -126.14914836936235 + -168.19886449248307 - 124.92756732472033 - 187.39135098708022 - -249.85513464944037 + 124.92752880856257 + 187.39129321284358 + -249.85505761712488 - -40.828136036689301 - -61.242204055033611 - 418.05399722550243 + -40.828096562321036 + -61.242144843481228 + 418.05392210960792