remove dead code and silence compiler warnings
This commit is contained in:
@ -641,7 +641,7 @@ void Velocity::ramp(int /*narg*/, char **arg)
|
||||
|
||||
// parse args
|
||||
|
||||
int v_dim;
|
||||
int v_dim = 0;
|
||||
if (strcmp(arg[0],"vx") == 0) v_dim = 0;
|
||||
else if (strcmp(arg[0],"vy") == 0) v_dim = 1;
|
||||
else if (strcmp(arg[0],"vz") == 0) v_dim = 2;
|
||||
@ -662,7 +662,7 @@ void Velocity::ramp(int /*narg*/, char **arg)
|
||||
v_hi = zscale*force->numeric(FLERR,arg[2]);
|
||||
}
|
||||
|
||||
int coord_dim;
|
||||
int coord_dim = 0;
|
||||
if (strcmp(arg[3],"x") == 0) coord_dim = 0;
|
||||
else if (strcmp(arg[3],"y") == 0) coord_dim = 1;
|
||||
else if (strcmp(arg[3],"z") == 0) coord_dim = 2;
|
||||
|
||||
Reference in New Issue
Block a user