diff --git a/src/KOKKOS/kokkos.cpp b/src/KOKKOS/kokkos.cpp index 8242b04cbe..9b5df82b86 100644 --- a/src/KOKKOS/kokkos.cpp +++ b/src/KOKKOS/kokkos.cpp @@ -17,6 +17,7 @@ #include "ctype.h" #include "kokkos.h" #include "lammps.h" +#include "force.h" #include "neighbor_kokkos.h" #include "neigh_list_kokkos.h" #include "error.h" diff --git a/src/lammps.cpp b/src/lammps.cpp index 287866fe63..f8a17ccf8b 100644 --- a/src/lammps.cpp +++ b/src/lammps.cpp @@ -677,7 +677,7 @@ void LAMMPS::post_create(int npack, int *pfirst, int *plast, char **arg) if (strlen(str) + strlen(arg[j]) + 2 > 128) error->all(FLERR,"Too many -pk arguments in command line"); strcat(str," "); - strcpy(str,arg[j]); + strcat(str,arg[j]); } input->one(str); }