Skip to content

Commit

Permalink
Fix maybe uninitialized warning in PairModulator
Browse files Browse the repository at this point in the history
  • Loading branch information
mphoward committed Dec 4, 2024
1 parent ab1ba91 commit 38dca8c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion hoomd/md/PairModulator.h
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,8 @@ template<typename PairEvaluator, typename DirectionalEnvelope> class PairModulat
const Scalar4& _q_j,
const Scalar _rcutsq,
const param_type& _params)
: dr(_dr), rsq(dot(_dr, _dr)), rcutsq(_rcutsq), q_i(_q_i), q_j(_q_j), params(_params)
: dr(_dr), rsq(dot(_dr, _dr)), rcutsq(_rcutsq), q_i(_q_i), q_j(_q_j), params(_params),
shape_i(nullptr), shape_j(nullptr), m_charge_i(0), m_charge_j(0)
{
}

Expand Down

0 comments on commit 38dca8c

Please sign in to comment.