Skip to content
Snippets Groups Projects
Commit 054ab6bf authored by Anders Hafreager's avatar Anders Hafreager
Browse files

Initializing pointers in USER-OMP

parent 77bbf03f
No related branches found
No related tags found
No related merge requests found
...@@ -34,7 +34,7 @@ enum{ISO,ANISO,TRICLINIC}; // same as fix_nh.cpp ...@@ -34,7 +34,7 @@ enum{ISO,ANISO,TRICLINIC}; // same as fix_nh.cpp
/* ---------------------------------------------------------------------- */ /* ---------------------------------------------------------------------- */
FixNPHugOMP::FixNPHugOMP(LAMMPS *lmp, int narg, char **arg) : FixNPHugOMP::FixNPHugOMP(LAMMPS *lmp, int narg, char **arg) :
FixNHOMP(lmp, narg, arg) FixNHOMP(lmp, narg, arg), pe(NULL), id_pe(NULL)
{ {
// Prevent masses from being updated every timestep // Prevent masses from being updated every timestep
......
...@@ -44,7 +44,8 @@ enum{FORWARD_RHO,FORWARD_AD,FORWARD_AD_PERATOM}; ...@@ -44,7 +44,8 @@ enum{FORWARD_RHO,FORWARD_AD,FORWARD_AD_PERATOM};
/* ---------------------------------------------------------------------- */ /* ---------------------------------------------------------------------- */
MSMCGOMP::MSMCGOMP(LAMMPS *lmp, int narg, char **arg) : MSMOMP(lmp, narg, arg) MSMCGOMP::MSMCGOMP(LAMMPS *lmp, int narg, char **arg) : MSMOMP(lmp, narg, arg),
is_charged(NULL)
{ {
if ((narg < 1) || (narg > 2)) if ((narg < 1) || (narg > 2))
error->all(FLERR,"Illegal kspace_style msm/cg/omp command"); error->all(FLERR,"Illegal kspace_style msm/cg/omp command");
...@@ -55,7 +56,6 @@ MSMCGOMP::MSMCGOMP(LAMMPS *lmp, int narg, char **arg) : MSMOMP(lmp, narg, arg) ...@@ -55,7 +56,6 @@ MSMCGOMP::MSMCGOMP(LAMMPS *lmp, int narg, char **arg) : MSMOMP(lmp, narg, arg)
else smallq = SMALLQ; else smallq = SMALLQ;
num_charged = -1; num_charged = -1;
is_charged = NULL;
} }
/* ---------------------------------------------------------------------- /* ----------------------------------------------------------------------
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment