Commit a59a385d authored by Axel Kohlmeyer's avatar Axel Kohlmeyer
Browse files

fix storage size for internal compute ids in fix plumed

parent d2846404
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -213,7 +213,7 @@ FixPlumed::FixPlumed(LAMMPS *lmp, int narg, char **arg) :

  // Define compute to calculate potential energy

  id_pe = new char[7];
  id_pe = new char[8];
  strcpy(id_pe,"plmd_pe");
  char **newarg = new char*[3];
  newarg[0] = id_pe;
@@ -226,7 +226,7 @@ FixPlumed::FixPlumed(LAMMPS *lmp, int narg, char **arg) :

  // Define compute to calculate pressure tensor

  id_press = new char[9];
  id_press = new char[11];
  strcpy(id_press,"plmd_press");
  newarg = new char*[5];
  newarg[0] = id_press;