From 58200c93fcb84737eaa71ee3007fbe1dc2c58ec7 Mon Sep 17 00:00:00 2001 From: Mikael Lund Date: Tue, 29 Oct 2019 14:43:30 +0100 Subject: [PATCH] Added zenodo config file and self energy test --- .zenodo.json | 24 ++++++++++++++++++++++++ test/unittests.cpp | 1 + 2 files changed, 25 insertions(+) create mode 100644 .zenodo.json diff --git a/.zenodo.json b/.zenodo.json new file mode 100644 index 0000000..26488fa --- /dev/null +++ b/.zenodo.json @@ -0,0 +1,24 @@ +{ + "creators": [ + { + "name": "Björn Stenqvist", + "affiliation": "Division of Physical Chemistry, Department of Chemistry, Lund University, Sweden", + "orcid": "0000-0002-9099-0663" + }, + { + "name": "Mikael Lund", + "affiliation": "Division of Theoretical Chemistry, Department of Chemistry, Lund University, Sweden", + "orcid": "0000-0001-8178-8175" + } + ], + "keywords": [ + "electrostatics", + "molecular dynamics", + "monte carlo", + "intermolecular interactions", + "multipoles", + "electric field" + ], + "license": "mit-license", + "upload_type": "software" +} diff --git a/test/unittests.cpp b/test/unittests.cpp index 8082228..4bfbfad 100644 --- a/test/unittests.cpp +++ b/test/unittests.cpp @@ -662,6 +662,7 @@ TEST_CASE("[CoulombGalore] Splined") { CHECK(pot.short_range_function_second_derivative(0.5) == Approx(3.36159125).epsilon(tol)); CHECK(pot.short_range_function_third_derivative(0.5) == Approx(-21.54779991).epsilon(tol)); CHECK(pot.short_range_function(1.0) == Approx(0.0).epsilon(tol)); + CHECK(pot.self_energy({4.0, 0.0}) == Approx( Wolf(alpha, cutoff).self_energy({4.0, 0.0}) ) ); } SUBCASE("Poisson") {