Fix writing forces to .xyz files#4294
Conversation
|
@mkrack, as simplification I removed the options |
|
I'm having second thoughts... Since we default to the .xyz extension, I figured it would be a good idea to write the forces in the offical XYZ format. However, the more user-friendly move is probably to restore our old (custom) format that we had before #3778. Meanwhile the Phonopy developers have already adopted to our new (custom) format (phonopy/phonopy#538). Fortunately, they also kept the parser for the old format. Any opinions? |
I don't see how this simplification for the forces printout can work for the special case of core-shell model runs which include three particle sets, i.e. cores, shells, and atoms, instead of just one (atoms). |
CP2K can write already the particle forces like the particle coordinates or velocities in XMOL format (and here).
Why is the old format more user-friendly?
It's generally a bad idea to parse proprietary output files which are primarily written for human readers. The If these files in standard formats are not written for each |
While I generally agree, the format has been stable for the last 15 years. Hence, it's not a surprise that people built workflows around it. And popular run types, like
My hope is that by sticking to the old format when writing to a file we could avoid breaking all those workflows. |
Fixes #3956 and presumably other workflows.