add a creator: tag to the YAML dump that allows to tell it apart

This commit is contained in:
Axel Kohlmeyer
2022-05-10 08:31:02 -04:00
parent b6ee64dc12
commit 5760c59d83

View File

@ -77,7 +77,7 @@ void DumpYAML::write_header(bigint ndump)
if (comm->me == 0) { if (comm->me == 0) {
const std::string boundary(boundstr); const std::string boundary(boundstr);
fmt::print(fp, "---\ntimestep: {}\n", update->ntimestep); fmt::print(fp, "---\ncreator: LAMMPS\ntimestep: {}\n", update->ntimestep);
if (unit_flag) fmt::print(fp, "units: {}\n", update->unit_style); if (unit_flag) fmt::print(fp, "units: {}\n", update->unit_style);
if (time_flag) fmt::print(fp, "time: {:.16g}\n", compute_time()); if (time_flag) fmt::print(fp, "time: {:.16g}\n", compute_time());