fix bugs detected by GitHub Copilot
This commit is contained in:
@ -323,7 +323,7 @@ class lammps(object):
|
||||
self.lib.lammps_create_atoms.argtypes = \
|
||||
[c_void_p, c_int, POINTER(self.c_tagint), POINTER(c_int), POINTER(c_double),
|
||||
POINTER(c_double), POINTER(c_double), POINTER(self.c_imageint), c_int]
|
||||
self.lib.lammps_create_atoms.retype = c_int
|
||||
self.lib.lammps_create_atoms.restype = c_int
|
||||
|
||||
self.lib.lammps_create_molecule.argtypes = [c_void_p, c_char_p, c_char_p]
|
||||
self.lib.lammps_create_molecule.restype = None
|
||||
|
||||
@ -870,7 +870,7 @@ void FixDeposit::options(int narg, char **arg)
|
||||
if (str) { \
|
||||
var = input->variable->find(str); \
|
||||
if (var < 0) var = input->variable->internal_create(str, 0.0); \
|
||||
if (!input->variable->internalstyle(xvar)) \
|
||||
if (!input->variable->internalstyle(var)) \
|
||||
error->all(FLERR, "Variable {} for fix deposit is invalid style", str); \
|
||||
} \
|
||||
|
||||
|
||||
Reference in New Issue
Block a user