From 742bb3aae286ed778c379c32e1e665c431af2d0f Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Thu, 1 Aug 2024 18:46:48 -0400 Subject: [PATCH] silence warnings --- src/GRANULAR/fix_add_heat.cpp | 2 +- src/ML-POD/pair_pod.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/GRANULAR/fix_add_heat.cpp b/src/GRANULAR/fix_add_heat.cpp index 01bc22cdf4..642ea806e8 100644 --- a/src/GRANULAR/fix_add_heat.cpp +++ b/src/GRANULAR/fix_add_heat.cpp @@ -142,7 +142,7 @@ void FixAddHeat::post_force(int /*vflag*/) if (mask[i] & groupbit) heatflow[i] = 0.0; - double vtmp, dt; + double vtmp = 0.0; if (vstyle == CONSTANT) vtmp = value; if (vstyle == EQUAL) vtmp = input->variable->compute_equal(var); for (int i = 0; i < atom->nlocal; i++) { diff --git a/src/ML-POD/pair_pod.cpp b/src/ML-POD/pair_pod.cpp index ee70d39df4..991ab6855c 100644 --- a/src/ML-POD/pair_pod.cpp +++ b/src/ML-POD/pair_pod.cpp @@ -890,7 +890,7 @@ void PairPOD::angularbasis(double *tm, double *tmu, double *tmv, double *tmw, in double tmvm = abfy[mj]; double tmwm = abfz[mj]; - double tmn, tmun, tmvn, tmwn; + double tmn = 0.0, tmun = 0.0, tmvn = 0.0, tmwn = 0.0; // Calculate angular basis function and its derivatives using recursion relation if (d==1) { tmn = tmm*u;