Skip to content

Commit 628531d

Browse files
authored
Merge pull request lammps#4144 from Bibobu/ave_histo_vector_bug
Fix for fix_ave_histo bug with vector style variables
2 parents 6836bca + baaea82 commit 628531d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/fix_ave_histo.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,8 @@ FixAveHisto::FixAveHisto(LAMMPS *lmp, int narg, char **arg) :
207207
if (val.val.v < 0)
208208
error->all(FLERR,"Variable name {} for {} does not exist", val.id, mycmd);
209209
// variables only produce one kind of output
210-
if (input->variable->equalstyle(val.val.v)) kindglobal = 1;
210+
if (input->variable->equalstyle(val.val.v) || input->variable->vectorstyle(val.val.v))
211+
kindglobal = 1;
211212
else if (input->variable->atomstyle(val.val.v)) kindperatom = 1;
212213
else error->all(FLERR,"{} variable {} is incompatible style", mycmd, val.id);
213214
}

0 commit comments

Comments
 (0)