use correct types
This commit is contained in:
@ -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");
|
||||
}
|
||||
|
||||
@ -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;
|
||||
}
|
||||
|
||||
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user