From c53f2d4629acfa1b88416e886bb1f2e498620bef Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Wed, 31 Mar 2021 14:55:07 -0400 Subject: [PATCH] correct USER-OMP respa/omp check --- src/USER-OMP/fix_omp.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/USER-OMP/fix_omp.cpp b/src/USER-OMP/fix_omp.cpp index 678df7c22a..ccc86325db 100644 --- a/src/USER-OMP/fix_omp.cpp +++ b/src/USER-OMP/fix_omp.cpp @@ -203,7 +203,8 @@ void FixOMP::init() thr[i]->_timer_active=-1; } - if (!utils::strmatch(update->integrate_style,"^respa/omp")) + if (utils::strmatch(update->integrate_style,"^respa") + && !utils::strmatch(update->integrate_style,"^respa/omp")) error->all(FLERR,"Must use respa/omp for r-RESPA with /omp styles"); if (force->pair && force->pair->compute_flag) _pair_compute_flag = true;