Skip to content

Commit

Permalink
Added a vectorstyle variable check for fix_ave_histo.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
Bibobu committed Apr 20, 2024
1 parent 2252706 commit 38c7d7a
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 38c7d7a

Please sign in to comment.