diff --git a/src/RIGID/fix_rigid_small.cpp b/src/RIGID/fix_rigid_small.cpp index e91eccfd781f8e1d45a1af12661d8e6f62aeb6c3..ec1db7f0f994b183a199528b9a2cabef29d31dfc 100644 --- a/src/RIGID/fix_rigid_small.cpp +++ b/src/RIGID/fix_rigid_small.cpp @@ -369,7 +369,7 @@ void FixRigidSmall::setup(int vflag) double **x = atom->x; double **f = atom->f; int *type = atom->type; - int *image = atom->image; + tagint *image = atom->image; int nlocal = atom->nlocal; double *xcm,*fcm,*tcm; @@ -1224,7 +1224,7 @@ void FixRigidSmall::create_bodies() // error check on image flags of atoms in rigid bodies - int *image = atom->image; + tagint *image = atom->image; int *mask = atom->mask; int nlocal = atom->nlocal; @@ -1474,7 +1474,7 @@ void FixRigidSmall::ring_nearest(int n, char *cbuf) void FixRigidSmall::ring_farthest(int n, char *cbuf) { double **x = frsptr->atom->x; - int *image = frsptr->atom->image; + tagint *image = frsptr->atom->image; int nlocal = frsptr->atom->nlocal; double *buf = (double *) cbuf; @@ -2017,7 +2017,7 @@ void FixRigidSmall::setup_bodies_dynamic() double *rmass = atom->rmass; double *mass = atom->mass; int *type = atom->type; - int *image = atom->image; + tagint *image = atom->image; int nlocal = atom->nlocal; double *xcm,*vcm,*acm; @@ -2797,9 +2797,9 @@ void FixRigidSmall::unpack_reverse_comm(int n, int *list, double *buf) j = list[i]; if (bodyown[j] < 0) continue; k = bodyown[j]; - counts[k][0] += buf[m++]; - counts[k][1] += buf[m++]; - counts[k][2] += buf[m++]; + counts[k][0] += static_cast<int> (buf[m++]); + counts[k][1] += static_cast<int> (buf[m++]); + counts[k][2] += static_cast<int> (buf[m++]); } } } diff --git a/src/domain.cpp b/src/domain.cpp index 85b78407c3ad7cd395a6b55c39cf814e38a8a987..93c5a7f1912bf89c7b975c37e26d63bd1e6749c1 100644 --- a/src/domain.cpp +++ b/src/domain.cpp @@ -565,7 +565,7 @@ void Domain::image_check() memory->create(unwrap,atom->nmax,3,"domain:unwrap"); double **x = atom->x; - int *image = atom->image; + tagint *image = atom->image; int nlocal = atom->nlocal; for (i = 0; i < nlocal; i++) diff --git a/src/set.cpp b/src/set.cpp index 5c0774f6c4a435631127f6e0d51601ed81811e27..df4d3d18d821bd0ff502ca65b687005c98feab39 100644 --- a/src/set.cpp +++ b/src/set.cpp @@ -387,7 +387,7 @@ void Set::command(int narg, char **arg) } else if (strstr(arg[iarg],"i_") == arg[iarg]) { if (iarg+2 > narg) error->all(FLERR,"Illegal set command"); if (strstr(arg[iarg+1],"v_") == arg[iarg+1]) varparse(arg[iarg+1],1); - else ivalue = force->numeric(FLERR,arg[iarg+1]); + else ivalue = force->inumeric(FLERR,arg[iarg+1]); int flag; index_custom = atom->find_custom(&arg[iarg][2],flag); if (index_custom < 0 || flag != 0)