DCD dump on Windows

I had problems with LAMMPS crashing when trying to write DCD output on Windows. It turns out that this is because of %R in line 363 of dump_dcd.cpp. According to man pages on Linux, %R in strftime is a Unix extension and so it doesn't work on Windows. Anyway, it is just a shortcut to:
Replacing %R with this fixes the crash on Windows and is standard C89 /ANSI C++ notation, so it should still work fine everywhere else too.

Tom Coles

ok - made the change - it will be
in the next patch