use new API, join loops, modernize

This commit is contained in:
Axel Kohlmeyer
2021-10-31 16:26:52 -04:00
parent 4395530756
commit 4f0f791417
7 changed files with 77 additions and 100 deletions

View File

@ -373,7 +373,7 @@ void Respa::setup(int flag)
mesg += "\n r-RESPA fixes :";
for (int l = 0; l < modify->n_post_force_respa; ++l) {
Fix *f = modify->fix[modify->list_post_force_respa[l]];
Fix *f = modify->get_fix_by_index(modify->list_post_force_respa[l]);
if (f->respa_level >= 0)
mesg += fmt::format(" {}:{}[{}]", MIN(f->respa_level + 1, nlevels), f->style, f->id);
}