diff --git a/python/lammps/core.py b/python/lammps/core.py index 62422a6fb2..473bf7f084 100644 --- a/python/lammps/core.py +++ b/python/lammps/core.py @@ -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 diff --git a/src/fix_deposit.cpp b/src/fix_deposit.cpp index 3ac059d8af..50bc610516 100644 --- a/src/fix_deposit.cpp +++ b/src/fix_deposit.cpp @@ -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); \ } \