silence compiler warnings and apply clang-format
This commit is contained in:
@ -648,6 +648,7 @@ template void utils::bounds<>(const char *, int, const std::string &,
|
|||||||
template void utils::bounds<>(const char *, int, const std::string &,
|
template void utils::bounds<>(const char *, int, const std::string &,
|
||||||
bigint, bigint, long long &, long long &, Error *);
|
bigint, bigint, long long &, long long &, Error *);
|
||||||
|
|
||||||
|
// clang-format on
|
||||||
/* ----------------------------------------------------------------------
|
/* ----------------------------------------------------------------------
|
||||||
wrapper for bounds() that accepts type label input
|
wrapper for bounds() that accepts type label input
|
||||||
------------------------------------------------------------------------- */
|
------------------------------------------------------------------------- */
|
||||||
@ -658,20 +659,21 @@ void utils::bounds_typelabel(const char *file, int line, const std::string &str,
|
|||||||
{
|
{
|
||||||
nlo = nhi = -1;
|
nlo = nhi = -1;
|
||||||
char *typestr;
|
char *typestr;
|
||||||
if ( typestr = utils::expand_type(FLERR, str, mode, lmp) )
|
if ((typestr = utils::expand_type(FLERR, str, mode, lmp)))
|
||||||
nlo = nhi = utils::inumeric(FLERR, typestr, false, lmp);
|
nlo = nhi = utils::inumeric(FLERR, typestr, false, lmp);
|
||||||
delete[] typestr;
|
delete[] typestr;
|
||||||
if (nlo > -1) return;
|
if (nlo > -1)
|
||||||
else utils::bounds(file, line, str, nmin, nmax, nlo, nhi, error);
|
return;
|
||||||
|
else
|
||||||
|
utils::bounds(file, line, str, nmin, nmax, nlo, nhi, error);
|
||||||
}
|
}
|
||||||
|
|
||||||
template void utils::bounds_typelabel<>(const char *, int, const std::string &,
|
template void utils::bounds_typelabel<>(const char *, int, const std::string &, bigint, bigint,
|
||||||
bigint, bigint, int &, int &, Error *, LAMMPS *, int);
|
int &, int &, Error *, LAMMPS *, int);
|
||||||
template void utils::bounds_typelabel<>(const char *, int, const std::string &,
|
template void utils::bounds_typelabel<>(const char *, int, const std::string &, bigint, bigint,
|
||||||
bigint, bigint, long &, long &, Error *, LAMMPS *, int);
|
long &, long &, Error *, LAMMPS *, int);
|
||||||
template void utils::bounds_typelabel<>(const char *, int, const std::string &,
|
template void utils::bounds_typelabel<>(const char *, int, const std::string &, bigint, bigint,
|
||||||
bigint, bigint, long long &, long long &, Error *, LAMMPS *, int);
|
long long &, long long &, Error *, LAMMPS *, int);
|
||||||
// clang-format on
|
|
||||||
|
|
||||||
/* -------------------------------------------------------------------------
|
/* -------------------------------------------------------------------------
|
||||||
Expand list of arguments in arg to earg if arg contains wildcards
|
Expand list of arguments in arg to earg if arg contains wildcards
|
||||||
@ -945,10 +947,11 @@ char *utils::expand_type(const char *file, int line, const std::string &str, int
|
|||||||
For example, type <= 0 or type > Ntypes is checked in calling routine.
|
For example, type <= 0 or type > Ntypes is checked in calling routine.
|
||||||
------------------------------------------------------------------------- */
|
------------------------------------------------------------------------- */
|
||||||
|
|
||||||
int utils::expand_type_int(const char *file, int line, const std::string &str, int mode, LAMMPS *lmp)
|
int utils::expand_type_int(const char *file, int line, const std::string &str, int mode,
|
||||||
|
LAMMPS *lmp)
|
||||||
{
|
{
|
||||||
char *typestr = expand_type(file, line, str, mode, lmp);
|
char *typestr = expand_type(file, line, str, mode, lmp);
|
||||||
int out = inumeric(file, line, typestr?typestr:str, false, lmp);
|
int out = inumeric(file, line, typestr ? typestr : str, false, lmp);
|
||||||
delete[] typestr;
|
delete[] typestr;
|
||||||
return out;
|
return out;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user