From b91cff1c86b8640e2f2fd8d658ab8d2fadc33b7b Mon Sep 17 00:00:00 2001 From: Yury Lysogorskiy Date: Wed, 22 Nov 2023 16:32:39 +0100 Subject: [PATCH] test_PyACECalculator.py: add ZBL_rep.yaml to tests --- tests/ZBL_rep.yaml | 28 ++++++++++++++++++++++++++++ tests/test_PyACECalculator.py | 2 +- 2 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 tests/ZBL_rep.yaml diff --git a/tests/ZBL_rep.yaml b/tests/ZBL_rep.yaml new file mode 100644 index 0000000..d05f9fe --- /dev/null +++ b/tests/ZBL_rep.yaml @@ -0,0 +1,28 @@ +global: + DeltaSplineBins: 0.001 +species: + - speciesblock: H + ndensityi: 1 + npoti: FinnisSinclairShiftedScaled + parameters: [1, 1] + rho_core_cut: 0 + drho_core_cut: 0 + nradmaxi: 0 + lmaxi: 0 + rcutij: 5 + dcutij: 0.01 + NameOfCutoffFunctionij: "" + r_in: 3 + delta_in: 1 + inner_cutoff_type: zbl + nradbaseij: 5 + radbase: SBessel + radparameters: [2] + radcoefficients: [] + core-repulsion: [1, 1] + nbody: + - {type: H H, nr: [1], nl: [0], c: [0]} + - {type: H H, nr: [2], nl: [0], c: [0]} + - {type: H H, nr: [3], nl: [0], c: [0]} + - {type: H H, nr: [4], nl: [0], c: [0]} + - {type: H H, nr: [5], nl: [0], c: [0]} diff --git a/tests/test_PyACECalculator.py b/tests/test_PyACECalculator.py index d794f7a..2f71236 100644 --- a/tests/test_PyACECalculator.py +++ b/tests/test_PyACECalculator.py @@ -233,7 +233,7 @@ def test_PyACEEnsembleCalculator(): def test_ZBL_analytical_derivative(): - calc = PyACECalculator("lib/ace/test/fitting/potentials/ZBL_rep.yaml") + calc = PyACECalculator("tests/ZBL_rep.yaml") def check(at, msg): at.set_calculator(calc)