fix issues flagged by compiler warnings.

This commit is contained in:
Axel Kohlmeyer
2014-07-29 16:33:58 -04:00
parent 909a9ff697
commit 526895f7ef
2 changed files with 4 additions and 6 deletions

View File

@ -279,14 +279,14 @@ void Balance::command(int narg, char **arg)
if (style == XYZ) {
if (comm->layout == LAYOUT_UNIFORM) {
if (xflag == USER || yflag == USER || zflag == USER)
comm->layout == LAYOUT_NONUNIFORM;
comm->layout = LAYOUT_NONUNIFORM;
} else if (comm->style == LAYOUT_NONUNIFORM) {
if (xflag == UNIFORM && yflag == UNIFORM && zflag == UNIFORM)
comm->layout == LAYOUT_UNIFORM;
comm->layout = LAYOUT_UNIFORM;
} else if (comm->style == LAYOUT_TILED) {
if (xflag == UNIFORM && yflag == UNIFORM && zflag == UNIFORM)
comm->layout == LAYOUT_UNIFORM;
else comm->layout == LAYOUT_NONUNIFORM;
comm->layout = LAYOUT_UNIFORM;
else comm->layout = LAYOUT_NONUNIFORM;
}
if (xflag == UNIFORM) {

View File

@ -498,8 +498,6 @@ void FixAdapt::restore_settings()
} else if (ad->which == ATOM) {
if (diamflag) {
int mflag = 0;
if (atom->rmass_flag) mflag = 1;
double density;
double *vec = fix_diam->vstore;