diff --git a/src/fix_ave_histo.cpp b/src/fix_ave_histo.cpp index 4503ad56f4e..4a5debe7991 100644 --- a/src/fix_ave_histo.cpp +++ b/src/fix_ave_histo.cpp @@ -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); }