fix bugs detected by GitHub Copilot

This commit is contained in:
Axel Kohlmeyer
2025-06-14 17:33:06 -04:00
parent 7dc4e17e0c
commit 90df96b16f
2 changed files with 2 additions and 2 deletions

View File

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

View File

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