new accessor APIs for fixes and computes in Modify plus a few applications
This commit is contained in:
@ -496,11 +496,8 @@ void Balance::weight_storage(char *prefix)
|
||||
if (prefix) cmd = prefix;
|
||||
cmd += "IMBALANCE_WEIGHTS";
|
||||
|
||||
int ifix = modify->find_fix(cmd);
|
||||
if (ifix < 1) {
|
||||
cmd += " all STORE peratom 0 1";
|
||||
fixstore = (FixStore *) modify->add_fix(cmd);
|
||||
} else fixstore = (FixStore *) modify->fix[ifix];
|
||||
fixstore = (FixStore *) modify->get_fix_by_id(cmd);
|
||||
if (!fixstore) fixstore = (FixStore *) modify->add_fix(cmd + " all STORE peratom 0 1");
|
||||
|
||||
// do not carry weights with atoms during normal atom migration
|
||||
|
||||
|
||||
Reference in New Issue
Block a user