add comment to indicate code intended for backward compatibility only

This commit is contained in:
Axel Kohlmeyer 2018-11-14 05:37:59 -05:00
parent a942d8b3ba
commit 952e52982e
1 changed files with 4 additions and 2 deletions

View File

@ -924,11 +924,13 @@ void ReadRestart::header(int incompatible)
atom->extra_dihedral_per_atom = read_int();
} else if (flag == EXTRA_IMPROPER_PER_ATOM) {
atom->extra_improper_per_atom = read_int();
} else if (flag == EXTRA_SPECIAL_PER_ATOM) {
force->special_extra = read_int();
} else if (flag == ATOM_MAXSPECIAL) {
atom->maxspecial = read_int();
// for backward compatibility
} else if (flag == EXTRA_SPECIAL_PER_ATOM) {
force->special_extra = read_int();
} else error->all(FLERR,"Invalid flag in header section of restart file");
flag = read_int();