make compatible with per-type and per-atom masses

This commit is contained in:
Axel Kohlmeyer
2024-07-30 16:16:05 -04:00
parent 1254d579f7
commit 5016a0848f
7 changed files with 47 additions and 21 deletions

View File

@ -469,7 +469,6 @@ void FixRHEO::final_integrate()
int *mask = atom->mask;
int *status = atom->rheo_status;
int rmass_flag = atom->rmass_flag;
int dim = domain->dimension;
// Update velocity
@ -477,7 +476,7 @@ void FixRHEO::final_integrate()
if (mask[i] & groupbit) {
if (status[i] & STATUS_NO_INTEGRATION) continue;
if (rmass_flag) {
if (rmass) {
dtfm = dtf / rmass[i];
} else {
dtfm = dtf / mass[type[i]];