fix issues flagged by compiler warnings.
This commit is contained in:
@ -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) {
|
||||
|
||||
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user