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

@ -174,8 +174,7 @@ int Region::surface(double x, double y, double z, double cutoff)
if (!openflag) {
if (interior) ncontact = surface_interior(xnear,cutoff);
else ncontact = surface_exterior(xnear,cutoff);
}
else{
} else {
// one of surface_int/ext() will return 0
// so no need to worry about offset of contact indices
ncontact = surface_exterior(xnear,cutoff) + surface_interior(xnear,cutoff);