fix issues indicated by compiler warnings

This commit is contained in:
Axel Kohlmeyer
2017-08-22 23:46:32 -04:00
parent 26c15140be
commit 79d5ca669d
3 changed files with 4 additions and 5 deletions

View File

@ -136,7 +136,7 @@ void AtomVecEDPD::force_clear(int n, size_t nbytes)
int AtomVecEDPD::pack_comm(int n, int *list, double *buf,
int pbc_flag, int *pbc)
{
int i,j,k,m;
int i,j,m;
double dx,dy,dz;
m = 0;
@ -182,7 +182,7 @@ int AtomVecEDPD::pack_comm(int n, int *list, double *buf,
int AtomVecEDPD::pack_comm_vel(int n, int *list, double *buf,
int pbc_flag, int *pbc)
{
int i,j,k,m;
int i,j,m;
double dx,dy,dz,dvx,dvy,dvz;
m = 0;

View File

@ -851,8 +851,8 @@ void AtomVecTDPD::write_data(FILE *fp, int n, double **buf)
(int) ubuf(buf[i][5]).i,(int) ubuf(buf[i][6]).i,
(int) ubuf(buf[i][7]).i);
for(int k = 0; k < cc_species; k++)
fprintf(fp,TAGINT_FORMAT " %-1.16e",buf[i][8+k]);
fprintf(fp,TAGINT_FORMAT "\n");
fprintf(fp," %-1.16e",buf[i][8+k]);
fprintf(fp,"\n");
}
}

View File

@ -91,7 +91,6 @@ PairTDPD::~PairTDPD()
void PairTDPD::compute(int eflag, int vflag)
{
double evdwl = 0.0;
double fpair;
if (eflag || vflag) ev_setup(eflag,vflag);
else evflag = vflag_fdotr = 0;