initialize cut_respa to NULL in constructor to avoid uninitialized access

This commit is contained in:
Axel Kohlmeyer
2020-02-14 15:51:38 -05:00
parent 9bff431553
commit 381ac888c8
10 changed files with 9 additions and 1 deletions

View File

@ -40,6 +40,7 @@ using namespace MathConst;
PairMIECut::PairMIECut(LAMMPS *lmp) : Pair(lmp)
{
respa_enable = 1;
cut_respa = NULL;
}
/* ---------------------------------------------------------------------- */