Initializing dvol array in bpm/spring

This commit is contained in:
jtclemm
2024-10-21 16:23:35 -06:00
parent 58ff8d3212
commit c8bbfc368a

View File

@ -158,6 +158,7 @@ void BondBPMSpring::compute(int eflag, int vflag)
if (nmax < atom->nmax) {
nmax = atom->nmax;
memory->create(dvol0, nmax, "bond/bpm/spring:dvol0");
for (i = 0; i < nmax; i++) dvol0[i] = 0.0;
}
}