silence compiler warnings

This commit is contained in:
Axel Kohlmeyer 2020-03-19 00:50:30 -04:00
parent f589cdb8c6
commit 9825cd2569
No known key found for this signature in database
GPG Key ID: D9B44E93BF0C375A
1 changed files with 3 additions and 6 deletions

View File

@ -40,8 +40,8 @@ using namespace FixConst;
/* ---------------------------------------------------------------------- */
FixNumDiff::FixNumDiff(LAMMPS *lmp, int narg, char **arg) :
Fix(lmp, narg, arg), numdiff_forces(NULL), temp_f(NULL),
id_pe(NULL)
Fix(lmp, narg, arg), id_pe(NULL), numdiff_forces(NULL),
temp_x(NULL), temp_f(NULL)
{
if (narg < 5) error->all(FLERR,"Illegal fix numdiff command");
@ -68,9 +68,6 @@ FixNumDiff::FixNumDiff(LAMMPS *lmp, int narg, char **arg) :
delete [] newarg;
maxatom = 0;
numdiff_forces = NULL;
temp_x = NULL;
temp_f = NULL;
if (atom->map_style == 0)
error->all(FLERR,"Fix numdiff requires an atom map, see atom_modify");
@ -156,7 +153,7 @@ void FixNumDiff::min_setup(int vflag)
/* ---------------------------------------------------------------------- */
void FixNumDiff::post_force(int vflag)
void FixNumDiff::post_force(int /* vflag */)
{
if (update->ntimestep % nevery) return;