Commit 952e5298 authored by Axel Kohlmeyer's avatar Axel Kohlmeyer
Browse files

add comment to indicate code intended for backward compatibility only

parent a942d8b3
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -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();