current_peratom updated every time

This commit is contained in:
draneyj
2023-12-14 09:09:52 -05:00
parent 95c6a9c25b
commit 31f753c7d0

View File

@ -197,7 +197,7 @@ void FixHMC::store_peratom_member(Atom::PerAtom &stored_peratom_member,
if (stored_peratom_member.name.compare(current_peratom_member.name)) {
error->all(FLERR, "fix hmc tried to store incorrect peratom data");
}
if (current_peratom_member.addreess == nullptr) return;
if (current_peratom_member.address == nullptr) return;
int cols;
// free old memory if stored_peratom_member isn't a copy of current_peratom_member
if (stored_peratom_member.address != current_peratom_member.address) {