correct USER-OMP respa/omp check

This commit is contained in:
Axel Kohlmeyer
2021-03-31 14:55:07 -04:00
parent 0bde6c82a3
commit c53f2d4629

View File

@ -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;