silence compiler warning in test programs

This commit is contained in:
Axel Kohlmeyer
2020-06-01 11:15:54 -04:00
parent 981cfd42f6
commit 886a950fd6
2 changed files with 2 additions and 2 deletions

View File

@ -288,7 +288,7 @@ void generate_yaml_file(const char *outfile, const TestConfig &config)
// equilibrium angle
std::stringstream eqstr;
eqstr << lmp->atom->nangletypes;
for (std::size_t i=0; i < lmp->atom->nangletypes; ++i) {
for (int i=0; i < lmp->atom->nangletypes; ++i) {
eqstr << " " << lmp->force->angle->equilibrium_angle(i+1);
}
writer.emit("equilibrium", eqstr.str());

View File

@ -288,7 +288,7 @@ void generate_yaml_file(const char *outfile, const TestConfig &config)
// equilibrium distance
std::stringstream eqstr;
eqstr << lmp->atom->nbondtypes;
for (std::size_t i=0; i < lmp->atom->nbondtypes; ++i) {
for (int i=0; i < lmp->atom->nbondtypes; ++i) {
eqstr << " " << lmp->force->bond->equilibrium_distance(i+1);
}
writer.emit("equilibrium", eqstr.str());