From 847983f250a573b64be51cf959b5ade315136e5e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-No=C3=ABl=20Grad?= Date: Mon, 25 Jul 2022 15:27:24 +0200 Subject: [PATCH] CMake: Fix broken test target for label parallel_odd Regression introduced in 7d8752b12771888065248b34a4f904c59203efd0. --- testsuite/python/CMakeLists.txt | 4 ++-- testsuite/python/coulomb_mixed_periodicity.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/testsuite/python/CMakeLists.txt b/testsuite/python/CMakeLists.txt index c11f5b16795..1c7b036983f 100644 --- a/testsuite/python/CMakeLists.txt +++ b/testsuite/python/CMakeLists.txt @@ -62,10 +62,10 @@ function(PYTHON_TEST) set_tests_properties(${TEST_NAME} PROPERTIES RESOURCE_LOCK GPU) endif() - if(${TEST_MAX_NUM_PROC} EQUAL 2) + if(${TEST_NUM_PROC} EQUAL 2) list(APPEND TEST_LABELS "parallel") endif() - if(${TEST_MAX_NUM_PROC} EQUAL 3) + if(${TEST_NUM_PROC} EQUAL 3) list(APPEND TEST_LABELS "parallel_odd") endif() set_tests_properties(${TEST_NAME} PROPERTIES LABELS "${TEST_LABELS}") diff --git a/testsuite/python/coulomb_mixed_periodicity.py b/testsuite/python/coulomb_mixed_periodicity.py index cf96974c0a2..fddc602ba5a 100644 --- a/testsuite/python/coulomb_mixed_periodicity.py +++ b/testsuite/python/coulomb_mixed_periodicity.py @@ -92,7 +92,7 @@ def test_elc_cpu(self): self.setup_elc_system() p3m = espressomd.electrostatics.P3M( - prefactor=1., accuracy=1e-6, mesh=[42, 42, 50], r_cut=3.5) + prefactor=1., accuracy=1e-6, mesh=[42, 42, 50], r_cut=3.) elc = espressomd.electrostatics.ELC( actor=p3m, maxPWerror=1E-6, gap_size=3) @@ -106,7 +106,7 @@ def test_elc_gpu(self): self.setup_elc_system() p3m = espressomd.electrostatics.P3M( - prefactor=1., accuracy=1e-6, mesh=[42, 42, 50], r_cut=3.5) + prefactor=1., accuracy=1e-6, mesh=[42, 42, 50], r_cut=3.) elc = espressomd.electrostatics.ELC( actor=p3m, maxPWerror=1E-6, gap_size=3.)