squash some more compiler warnings

This commit is contained in:
Axel Kohlmeyer
2018-08-29 14:55:36 -04:00
parent 447a6c3373
commit 054abe280e
2 changed files with 3 additions and 2 deletions

View File

@ -412,7 +412,7 @@ void FixTMD::readfile(char *file)
m++; m++;
} }
MPI_Bcast(&eof,sizeof(char *)/sizeof(char),MPI_CHAR,0,world); MPI_Bcast(&eof,sizeof(char *),MPI_CHAR,0,world);
MPI_Bcast(&nlines,1,MPI_INT,0,world); MPI_Bcast(&nlines,1,MPI_INT,0,world);
MPI_Bcast(&m,1,MPI_INT,0,world); MPI_Bcast(&m,1,MPI_INT,0,world);
MPI_Bcast(buffer,m,MPI_CHAR,0,world); MPI_Bcast(buffer,m,MPI_CHAR,0,world);

View File

@ -1515,7 +1515,8 @@ void lammps_create_atoms(void *ptr, int n, tagint *id, int *type,
if (lmp->atom->natoms != natoms_prev + n) { if (lmp->atom->natoms != natoms_prev + n) {
char str[128]; char str[128];
sprintf(str,"Library warning in lammps_create_atoms, " sprintf(str,"Library warning in lammps_create_atoms, "
"invalid total atoms " BIGINT_FORMAT " %lld",lmp->atom->natoms,natoms_prev+n); "invalid total atoms " BIGINT_FORMAT " " BIGINT_FORMAT,
lmp->atom->natoms,natoms_prev+n);
if (lmp->comm->me == 0) if (lmp->comm->me == 0)
lmp->error->warning(FLERR,str); lmp->error->warning(FLERR,str);
} }