diff --git a/src/EXTRA-COMPUTE/compute_hexorder_atom.cpp b/src/EXTRA-COMPUTE/compute_hexorder_atom.cpp index 86e816b2e5..67c5b25700 100644 --- a/src/EXTRA-COMPUTE/compute_hexorder_atom.cpp +++ b/src/EXTRA-COMPUTE/compute_hexorder_atom.cpp @@ -62,7 +62,7 @@ ComputeHexOrderAtom::ComputeHexOrderAtom(LAMMPS *lmp, int narg, char **arg) : while (iarg < narg) { if (strcmp(arg[iarg],"degree") == 0) { if (iarg+2 > narg) error->all(FLERR,"Illegal compute hexorder/atom command"); - ndegree = utils::numeric(FLERR,arg[iarg+1],false,lmp); + ndegree = utils::inumeric(FLERR,arg[iarg+1],false,lmp); if (ndegree < 0) error->all(FLERR,"Illegal compute hexorder/atom command"); iarg += 2; @@ -71,7 +71,7 @@ ComputeHexOrderAtom::ComputeHexOrderAtom(LAMMPS *lmp, int narg, char **arg) : if (strcmp(arg[iarg+1],"NULL") == 0) nnn = 0; else { - nnn = utils::numeric(FLERR,arg[iarg+1],false,lmp); + nnn = utils::inumeric(FLERR,arg[iarg+1],false,lmp); if (nnn < 0) error->all(FLERR,"Illegal compute hexorder/atom command"); } diff --git a/src/EXTRA-PAIR/pair_cosine_squared.cpp b/src/EXTRA-PAIR/pair_cosine_squared.cpp index 888938fa8d..4a5b677bb4 100644 --- a/src/EXTRA-PAIR/pair_cosine_squared.cpp +++ b/src/EXTRA-PAIR/pair_cosine_squared.cpp @@ -133,7 +133,7 @@ void PairCosineSquared::coeff(int narg, char **arg) double sigma_one = utils::numeric(FLERR, arg[3],false,lmp); double cut_one = cut_global; - double wca_one = 0; + int wca_one = 0; if (narg == 6) { cut_one = utils::numeric(FLERR, arg[4],false,lmp); if (strcmp(arg[5], "wca") == 0) { diff --git a/src/GRANULAR/fix_wall_gran.cpp b/src/GRANULAR/fix_wall_gran.cpp index d0c623aa92..11a2b920a7 100644 --- a/src/GRANULAR/fix_wall_gran.cpp +++ b/src/GRANULAR/fix_wall_gran.cpp @@ -500,7 +500,7 @@ void FixWallGran::post_force(int /*vflag*/) model->dx[2] = dz; model->radi = radius[i]; model->radj = rwall; - if (model->beyond_contact) model->touch = history_one[i][0]; + if (model->beyond_contact) model->touch = (history_one[i][0] != 0.0); touchflag = model->check_contact(); diff --git a/src/GRANULAR/fix_wall_gran_region.cpp b/src/GRANULAR/fix_wall_gran_region.cpp index 2009b5974b..6c2d26617d 100644 --- a/src/GRANULAR/fix_wall_gran_region.cpp +++ b/src/GRANULAR/fix_wall_gran_region.cpp @@ -235,7 +235,7 @@ void FixWallGranRegion::post_force(int /*vflag*/) model->i = i; model->j = ic; - if (model->beyond_contact) model->touch = history_many[i][c2r[ic]][0]; + if (model->beyond_contact) model->touch = (history_many[i][c2r[ic]][0] != 0.0); touchflag = model->check_contact(); diff --git a/src/lammps.cpp b/src/lammps.cpp index 98839e33fb..16ac3ba8e0 100644 --- a/src/lammps.cpp +++ b/src/lammps.cpp @@ -788,10 +788,10 @@ LAMMPS::~LAMMPS() noexcept(false) double totalclock = platform::walltime() - initclock; if ((me == 0) && (screen || logfile)) { - int seconds = fmod(totalclock,60.0); + auto seconds = (int) fmod(totalclock,60.0); totalclock = (totalclock - seconds) / 60.0; - int minutes = fmod(totalclock,60.0); - int hours = (totalclock - minutes) / 60.0; + auto minutes = (int) fmod(totalclock,60.0); + auto hours = (int) ((totalclock - minutes) / 60.0); utils::logmesg(this, "Total wall time: {}:{:02d}:{:02d}\n", hours, minutes, seconds); }