From 28de91a2ccbd1ea5dacb559aafa2289fb3412294 Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Thu, 25 Jan 2024 23:26:21 -0500 Subject: [PATCH] avoid uninitialized pointers --- src/compute_heat_flux.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/compute_heat_flux.cpp b/src/compute_heat_flux.cpp index 1b6fd27086..62b2c8b63b 100644 --- a/src/compute_heat_flux.cpp +++ b/src/compute_heat_flux.cpp @@ -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");