Skip to content

Commit

Permalink
fix incorrect extvector setting bug for using fix vector with fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
akohlmey committed Dec 15, 2024
1 parent 861b1fb commit a6d53d8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/fix_vector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit a6d53d8

Please sign in to comment.