From a88364a2ea4e2e866e4e4e4a512a8778c2e98ba7 Mon Sep 17 00:00:00 2001 From: Stan Moore Date: Tue, 28 Apr 2020 15:39:01 -0600 Subject: [PATCH] Tweak error message --- src/KOKKOS/pair_reaxc_kokkos.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/KOKKOS/pair_reaxc_kokkos.cpp b/src/KOKKOS/pair_reaxc_kokkos.cpp index 33d4d5e94c..5326e926e5 100644 --- a/src/KOKKOS/pair_reaxc_kokkos.cpp +++ b/src/KOKKOS/pair_reaxc_kokkos.cpp @@ -152,14 +152,12 @@ void PairReaxCKokkos::init_style() neighbor->requests[irequest]-> kokkos_device = std::is_same::value; - if (neighflag == FULL) { - error->all(FLERR,"Must use half neighbor list with pair style reax/c/kk"); - } else if (neighflag == HALF || neighflag == HALFTHREAD) { + if (neighflag == HALF || neighflag == HALFTHREAD) { neighbor->requests[irequest]->full = 0; neighbor->requests[irequest]->half = 1; neighbor->requests[irequest]->ghost = 1; } else { - error->all(FLERR,"Cannot use chosen neighbor list style with reax/c/kk"); + error->all(FLERR,"Must use half neighbor list with pair style reax/c/kk"); } allocate();