diff --git a/src/MC/fix_gcmc.cpp b/src/MC/fix_gcmc.cpp index 8fb778207b..67ace6498c 100644 --- a/src/MC/fix_gcmc.cpp +++ b/src/MC/fix_gcmc.cpp @@ -379,11 +379,11 @@ void FixGCMC::options(int narg, char **arg) iarg += 2; } else if (strcmp(arg[iarg],"min") == 0) { if (iarg+2 > narg) error->all(FLERR,"Illegal fix gcmc command"); - min_ngas = utils::numeric(FLERR,arg[iarg+1],false,lmp); + min_ngas = utils::inumeric(FLERR,arg[iarg+1],false,lmp); iarg += 2; } else if (strcmp(arg[iarg],"max") == 0) { if (iarg+2 > narg) error->all(FLERR,"Illegal fix gcmc command"); - max_ngas = utils::numeric(FLERR,arg[iarg+1],false,lmp); + max_ngas = utils::inumeric(FLERR,arg[iarg+1],false,lmp); iarg += 2; } else error->all(FLERR,"Illegal fix gcmc command"); } diff --git a/src/ML-SNAP/compute_gaussian_grid_local.cpp b/src/ML-SNAP/compute_gaussian_grid_local.cpp index 8a747a7908..439708f999 100644 --- a/src/ML-SNAP/compute_gaussian_grid_local.cpp +++ b/src/ML-SNAP/compute_gaussian_grid_local.cpp @@ -160,7 +160,7 @@ void ComputeGaussianGridLocal::compute_local() double ComputeGaussianGridLocal::memory_usage() { int n = atom->ntypes + 1; - int nbytes = (double) n * sizeof(int); // map + double nbytes = (double) n * sizeof(int); // map return nbytes; } diff --git a/src/ML-SNAP/pair_snap.h b/src/ML-SNAP/pair_snap.h index 2ac4da881c..ec6cbe1c13 100644 --- a/src/ML-SNAP/pair_snap.h +++ b/src/ML-SNAP/pair_snap.h @@ -36,8 +36,8 @@ class PairSNAP : public Pair { double memory_usage() override; void *extract(const char *, int &) override; - double rcutfac, quadraticflag; // declared public to workaround gcc 4.9 - int ncoeff; // compiler bug, manifest in KOKKOS package + double rcutfac; + int quadraticflag, ncoeff; protected: int ncoeffq, ncoeffall;