simplify using new APIs

This commit is contained in:
Axel Kohlmeyer
2021-10-24 18:00:15 -04:00
parent a782f8f8e0
commit d0416757b7
6 changed files with 32 additions and 42 deletions

View File

@ -413,9 +413,9 @@ void WriteRestart::write(const std::string &file)
// invoke any fixes that write their own restart file
for (int ifix = 0; ifix < modify->nfix; ifix++)
if (modify->fix[ifix]->restart_file)
modify->fix[ifix]->write_restart_file(file.c_str());
for (auto fix : modify->get_fix_list())
if (fix->restart_file)
fix->write_restart_file(file.c_str());
}
/* ----------------------------------------------------------------------