change format for equilibrium values and update writer and reader code, so it will become compatible with class2 angles/dihedrals/impropers
This commit is contained in:
@ -287,8 +287,8 @@ void generate_yaml_file(const char *outfile, const TestConfig &config)
|
||||
|
||||
// equilibrium angle
|
||||
std::stringstream eqstr;
|
||||
eqstr << lmp->force->angle->equilibrium_angle(1);
|
||||
for (std::size_t i=1; i < config.angle_coeff.size(); ++i) {
|
||||
eqstr << lmp->atom->nangletypes;
|
||||
for (std::size_t i=0; i < lmp->atom->nangletypes; ++i) {
|
||||
eqstr << " " << lmp->force->angle->equilibrium_angle(i+1);
|
||||
}
|
||||
writer.emit("equilibrium", eqstr.str());
|
||||
|
||||
Reference in New Issue
Block a user