From ed60071d006539079343cc71420b18cfefe82812 Mon Sep 17 00:00:00 2001 From: Marvin Friede <51965259+marvinfriede@users.noreply.github.com> Date: Tue, 10 Jan 2023 22:27:24 +0100 Subject: [PATCH] Minor fix (#13) --- README.md | 19 ++++++++++++------- src/program_dftd.cpp | 5 +---- 2 files changed, 13 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index 733dfc1..9acae29 100644 --- a/README.md +++ b/README.md @@ -11,16 +11,21 @@ to C++ and provides the D4(EEQ)-ATM method. This project is build with `meson`, to setup and perform a build run: ```bash -meson setup build -ninja -C build +meson setup _build +meson compile -C _build +``` + +Run the test suite with: + +```bash +meson test -C _build --print-errorlogs ``` ## Citations -- E. Caldeweyher, C. Bannwarth and S. Grimme, *J. Chem. Phys.*, **2017**, 147, 034112. - DOI: [10.1063/1.4993215](https://dx.doi.org/10.1063/1.4993215) -- E. Caldeweyher, S. Ehlert, A. Hansen, H. Neugebauer, S. Spicher, C. Bannwarth and S. Grimme, *J. Chem. Phys.*, - **2019**, 150, 154122. DOI: [10.1063/1.5090222](https://dx.doi.org/10.1063/1.5090222) +- E. Caldeweyher, C. Bannwarth and S. Grimme, _J. Chem. Phys._, **2017**, 147, 034112. DOI: [10.1063/1.4993215](https://dx.doi.org/10.1063/1.4993215) +- E. Caldeweyher, S. Ehlert, A. Hansen, H. Neugebauer, S. Spicher, C. Bannwarth and S. Grimme, _J. Chem. Phys._, **2019**, 150, 154122. DOI: [10.1063/1.5090222](https://dx.doi.org/10.1063/1.5090222) +- E. Caldeweyher, J.-M. Mewes, S. Ehlert and S. Grimme, _Phys. Chem. Chem. Phys._, **2020**, 22, 8499-8512. DOI: [10.1039/D0CP00502A](https://doi.org/10.1039/D0CP00502A) ## License @@ -31,5 +36,5 @@ the Free Software Foundation, either version 3 of the License, or DFT-D4 is distributed in the hope that it will be useful, but without any warranty; without even the implied warranty of -merchantability or fitness for a particular purpose. See the +merchantability or fitness for a particular purpose. See the GNU Lesser General Public License for more details. diff --git a/src/program_dftd.cpp b/src/program_dftd.cpp index 17df40f..1e30e83 100644 --- a/src/program_dftd.cpp +++ b/src/program_dftd.cpp @@ -147,10 +147,7 @@ int main(int argc, char **argv) { // initialize default cutoffs dftd4::TCutoff cutoff; - // molecular information - dftd4::TMolInfo dat = dftd4::TMolInfo(charge); - - info = dftd4::get_dispersion(dat, mol, par, cutoff, energy, nullptr); + info = dftd4::get_dispersion(mol, charge, par, cutoff, energy, nullptr); if (info != 0) return EXIT_FAILURE; std::cout << "Dispersion energy: " << energy << " Eh\n";