avoid uninitialized pointers

This commit is contained in:
Axel Kohlmeyer
2024-01-25 23:26:21 -05:00
parent 7d53f8d1c5
commit 28de91a2cc

View File

@ -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");