Merge pull request #622 from akohlmey/collected-small-fixes

Collected small fixes
This commit is contained in:
Steve Plimpton
2017-08-23 14:12:45 -06:00
committed by GitHub
9 changed files with 67 additions and 40 deletions

View File

@ -1234,7 +1234,7 @@ void Molecule::shakeflag_read(char *line)
void Molecule::shakeatom_read(char *line)
{
int tmp, nmatch, nwant;
int tmp, nmatch=0, nwant=0;
for (int i = 0; i < natoms; i++) {
readline(line);
if (shake_flag[i] == 1) {
@ -1277,7 +1277,7 @@ void Molecule::shakeatom_read(char *line)
void Molecule::shaketype_read(char *line)
{
int tmp,nmatch,nwant;
int tmp, nmatch=0, nwant=0;
for (int i = 0; i < natoms; i++) {
readline(line);
if (shake_flag[i] == 1) {