Skip to content
Snippets Groups Projects
Commit eee3f746 authored by Marcin Kirsz's avatar Marcin Kirsz
Browse files

Added Masses section

parent cecc4362
No related branches found
No related tags found
1 merge request!16Develop
Pipeline #49016 passed
......@@ -57,6 +57,13 @@ void LammpsStructureWriter::write_data(const std::string& filename, const size_t
// END LAMMPS HEADER
// BEGIN LAMMPS BODY
file << std::endl;
file << "Masses" << std::endl;
file << std::endl;
for (const auto &t: type) {
file << t.second << " " << PeriodicTable::get_mass(t.first) << " # " << t.first << std::endl;
}
file << std::endl;
file << "Atoms # atomic" << std::endl;
file << std::endl;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment