fix incorrect extvector setting bug for using fix vector with fixes
This commit is contained in:
@ -114,9 +114,11 @@ FixVector::FixVector(LAMMPS *lmp, int narg, char **arg) :
|
||||
error->all(FLERR, "Fix for fix {} vector not computed at compatible time", val.id);
|
||||
|
||||
if (val.argindex == 0)
|
||||
value = ifix->extscalar;
|
||||
else if (ifix->extvector >= 0)
|
||||
value = ifix->extvector;
|
||||
else
|
||||
value = ifix->extarray;
|
||||
value = ifix->extlist[val.argindex - 1];
|
||||
val.val.f = ifix;
|
||||
|
||||
} else if (val.which == ArgInfo::VARIABLE) {
|
||||
|
||||
Reference in New Issue
Block a user