forcerec->forceHelperBuffers.emplace_back(haveDirectVirialContributions);
}
- if (forcerec->shift_vec == nullptr)
+ if (forcerec->shift_vec.empty())
{
- snew(forcerec->shift_vec, SHIFTS);
+ forcerec->shift_vec.resize(SHIFTS);
}
if (forcerec->nbfp.empty())
t_forcerec::~t_forcerec()
{
/* Note: This code will disappear when types are converted to C++ */
- sfree(shift_vec);
sfree(ewc_t);
}