remove trailing whitespace

This commit is contained in:
Axel Kohlmeyer
2018-03-16 12:37:27 -04:00
parent ee862d8bf5
commit 59dbb49cf9
204 changed files with 1543 additions and 1543 deletions

View File

@ -268,7 +268,7 @@ void lammps_commands_list(void *ptr, int ncmd, char **cmds)
/* ----------------------------------------------------------------------
process multiple input commands in single long str, separated by newlines
single command can span multiple lines via continuation characters
single command can span multiple lines via continuation characters
multi-line commands enabled by triple quotes will not work
------------------------------------------------------------------------- */
@ -449,7 +449,7 @@ void lammps_extract_box(void *ptr, double *boxlo, double *boxhi,
periodicity[0] = domain->periodicity[0];
periodicity[1] = domain->periodicity[1];
periodicity[2] = domain->periodicity[2];
*box_change = domain->box_change;
}
@ -791,7 +791,7 @@ void lammps_gather_atoms(void *ptr, char *name,
// error if tags are not defined or not consecutive
int flag = 0;
if (lmp->atom->tag_enable == 0 || lmp->atom->tag_consecutive() == 0)
if (lmp->atom->tag_enable == 0 || lmp->atom->tag_consecutive() == 0)
flag = 1;
if (lmp->atom->natoms > MAXSMALLINT) flag = 1;
if (flag) {
@ -845,7 +845,7 @@ void lammps_gather_atoms(void *ptr, char *name,
for (j = 0; j < count; j++)
copy[offset++] = array[i][j];
}
MPI_Allreduce(copy,data,count*natoms,MPI_INT,MPI_SUM,lmp->world);
lmp->memory->destroy(copy);
@ -900,7 +900,7 @@ void lammps_scatter_atoms(void *ptr, char *name,
// error if tags are not defined or not consecutive or no atom map
int flag = 0;
if (lmp->atom->tag_enable == 0 || lmp->atom->tag_consecutive() == 0)
if (lmp->atom->tag_enable == 0 || lmp->atom->tag_consecutive() == 0)
flag = 1;
if (lmp->atom->natoms > MAXSMALLINT) flag = 1;
if (lmp->atom->map_style == 0) flag = 1;
@ -1031,7 +1031,7 @@ void lammps_create_atoms(void *ptr, int n, tagint *id, int *type,
bigint natoms_prev = atom->natoms;
int nlocal_prev = nlocal;
double xdata[3];
for (int i = 0; i < n; i++) {
xdata[0] = x[3*i];
xdata[1] = x[3*i+1];
@ -1039,7 +1039,7 @@ void lammps_create_atoms(void *ptr, int n, tagint *id, int *type,
imageint * img = image ? &image[i] : NULL;
tagint tag = id ? id[i] : -1;
if (!domain->ownatom(tag, xdata, img, shrinkexceed)) continue;
atom->avec->create_atom(type[i],xdata);
if (id) atom->tag[nlocal] = id[i];
else atom->tag[nlocal] = i+1;
@ -1071,7 +1071,7 @@ void lammps_create_atoms(void *ptr, int n, tagint *id, int *type,
}
// warn if new natoms is not correct
if (lmp->atom->natoms != natoms_prev + n) {
char str[128];
sprintf(str,"Library warning in lammps_create_atoms, "