Skip to content

Commit

Permalink
Merge pull request lammps#4144 from Bibobu/ave_histo_vector_bug
Browse files Browse the repository at this point in the history
Fix for fix_ave_histo bug with vector style variables
  • Loading branch information
stanmoore1 authored Apr 22, 2024
2 parents 6836bca + baaea82 commit 628531d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/fix_ave_histo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,8 @@ FixAveHisto::FixAveHisto(LAMMPS *lmp, int narg, char **arg) :
if (val.val.v < 0)
error->all(FLERR,"Variable name {} for {} does not exist", val.id, mycmd);
// variables only produce one kind of output
if (input->variable->equalstyle(val.val.v)) kindglobal = 1;
if (input->variable->equalstyle(val.val.v) || input->variable->vectorstyle(val.val.v))
kindglobal = 1;
else if (input->variable->atomstyle(val.val.v)) kindperatom = 1;
else error->all(FLERR,"{} variable {} is incompatible style", mycmd, val.id);
}
Expand Down

0 comments on commit 628531d

Please sign in to comment.