consistent formatting: adjust cases of "dangling else", add curly braces

This commit is contained in:
Axel Kohlmeyer
2018-12-29 14:47:50 -05:00
parent c588b44cf1
commit 991ca25dd7
18 changed files with 127 additions and 196 deletions

View File

@ -258,8 +258,7 @@ void PairSRP::compute(int eflag, int vflag)
}
}
}
}
else{
} else {
// using min distance option
for (ii = 0; ii < inum; ii++) {
@ -361,9 +360,9 @@ void PairSRP::settings(int narg, char **arg)
cut_global = force->numeric(FLERR,arg[0]);
// wildcard
if (strcmp(arg[1],"*") == 0)
if (strcmp(arg[1],"*") == 0) {
btype = 0;
else {
} else {
btype = force->inumeric(FLERR,arg[1]);
if ((btype > atom->nbondtypes) || (btype <= 0))
error->all(FLERR,"Illegal pair_style command");