silence compiler warnings

This commit is contained in:
Axel Kohlmeyer
2021-04-23 15:51:16 -04:00
parent 8541b0da3e
commit fe063b27c7
11 changed files with 21 additions and 26 deletions

View File

@ -95,8 +95,11 @@ void FixMomentum::init()
void FixMomentum::end_of_step()
{
double **x = atom->x;
double **v = atom->v;
int *mask = atom->mask;
imageint *image = atom->image;
const int nlocal = atom->nlocal;
double ekin_old,ekin_new;
ekin_old = ekin_new = 0.0;
@ -157,12 +160,6 @@ void FixMomentum::end_of_step()
// vnew_i = v_i - w x r_i
// must use unwrapped coords to compute r_i correctly
double **x = atom->x;
double **v = atom->v;
int *mask = atom->mask;
imageint *image = atom->image;
int nlocal = atom->nlocal;
double dx,dy,dz;
double unwrap[3];