use correct types

This commit is contained in:
Axel Kohlmeyer
2025-06-28 04:06:36 -04:00
parent 22a42446d3
commit 8dae514e03
3 changed files with 5 additions and 5 deletions

View File

@ -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");
}

View File

@ -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;
}

View File

@ -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;