bug in write_data?

Dear LAMMPS developers,

Today I have stumbled over a small bug in the write_data routine (lmp_27May2014):

I read a data file, define a group of molecules and use delete_atoms to delete these molecules, which works all fine, however, when I then use write_data the number of dihedrals and impropers in the header of the new data file is still the same as in the original one. All other data are correct, as are the atom-, bond-, angle-, and so on lists, it is really just those 2 numbers in the header.

Not a big deal, just to let you know as I didn’t see any comment on this on the bugfix page…

Kind regards,

Markus