avoid uninitialized pointers
This commit is contained in:
@ -32,7 +32,8 @@ using namespace LAMMPS_NS;
|
||||
|
||||
ComputeHeatFlux::ComputeHeatFlux(LAMMPS *lmp, int narg, char **arg) :
|
||||
Compute(lmp, narg, arg),
|
||||
id_ke(nullptr), id_pe(nullptr), id_stress(nullptr)
|
||||
id_ke(nullptr), id_pe(nullptr), id_stress(nullptr),
|
||||
c_ke(nullptr), c_pe(nullptr), c_stress(nullptr)
|
||||
{
|
||||
if (narg != 6) error->all(FLERR,"Illegal compute heat/flux command");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user