Initializing dvol array in bpm/spring
This commit is contained in:
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user