silence compiler warnings about unused variables

This commit is contained in:
Axel Kohlmeyer
2022-08-06 19:59:37 -04:00
parent f92e57ba9e
commit b465d3c86f
3 changed files with 4 additions and 6 deletions

View File

@ -54,8 +54,6 @@ class FixStorePeratom : public Fix {
int n2, n3; // size of 3d dims of per-atom data struct int n2, n3; // size of 3d dims of per-atom data struct
int nvalues; // number of per-atom values int nvalues; // number of per-atom values
int nbytes; // number of per-atom bytes int nbytes; // number of per-atom bytes
double *rbuf; // restart buffer for GLOBAL vec/array/tensor
}; };
} // namespace LAMMPS_NS } // namespace LAMMPS_NS

View File

@ -1354,7 +1354,7 @@ void Neighbor::morph_granular()
void Neighbor::morph_halffull() void Neighbor::morph_halffull()
{ {
int i,j,jj,jmin; int i,j,jj;
NeighRequest *irq,*jrq; NeighRequest *irq,*jrq;
double icut,jcut; double icut,jcut;
@ -1438,7 +1438,7 @@ void Neighbor::morph_halffull()
void Neighbor::morph_copy_trim() void Neighbor::morph_copy_trim()
{ {
int i,j,jj,jmin,inewton,jnewton; int i,j,jj,inewton,jnewton;
NeighRequest *irq,*jrq; NeighRequest *irq,*jrq;
double icut,jcut; double icut,jcut;

View File

@ -33,7 +33,7 @@ void NPairTrim::build(NeighList *list)
double cutsq_custom = cutoff_custom * cutoff_custom; double cutsq_custom = cutoff_custom * cutoff_custom;
int i,j,ii,jj,n,jnum,joriginal; int ii,jj,n,jnum,joriginal;
int *neighptr,*jlist; int *neighptr,*jlist;
double xtmp,ytmp,ztmp; double xtmp,ytmp,ztmp;
double delx,dely,delz,rsq; double delx,dely,delz,rsq;
@ -71,7 +71,7 @@ void NPairTrim::build(NeighList *list)
for (jj = 0; jj < jnum; jj++) { for (jj = 0; jj < jnum; jj++) {
joriginal = jlist[jj]; joriginal = jlist[jj];
j = joriginal & NEIGHMASK; const int j = joriginal & NEIGHMASK;
delx = xtmp - x[j][0]; delx = xtmp - x[j][0];
dely = ytmp - x[j][1]; dely = ytmp - x[j][1];