Commit 7a720ee9 authored by Sievers's avatar Sievers
Browse files

removed cstring from includes and fixed style warnings

parent 10fa9aa0
Loading
Loading
Loading
Loading
+3 −6
Original line number Diff line number Diff line
@@ -16,7 +16,6 @@
------------------------------------------------------------------------- */

#include "fix_numdiff.h"
#include <cstring>
#include <mpi.h>
#include <memory.h>
#include "atom.h"
@@ -52,8 +51,7 @@ FixNumDiff::FixNumDiff(LAMMPS *lmp, int narg, char **arg) :

  nevery = force->inumeric(FLERR,arg[3]);
  delta = force->numeric(FLERR,arg[4]);
  if (nevery <= 0 || delta <= 0.0) 
    error->all(FLERR,"Illegal fix numdiff command");
  if (nevery <= 0 || delta <= 0.0) error->all(FLERR,"Illegal fix numdiff command");

  int n = strlen(id) + 6;
  id_pe = new char[n];
@@ -104,8 +102,7 @@ void FixNumDiff::init()
{
  // require consecutive atom IDs

  if (!atom->tag_enable || !atom->tag_consecutive()) 
    error->all(FLERR,"Fix numdiff requires consecutive atom IDs");
  if (!atom->tag_enable || !atom->tag_consecutive()) error->all(FLERR,"Fix numdiff requires consecutive atom IDs");

  // check for PE compute