From 38c7d7aa1cc62f64fc62eb9cf0e3194faeae3d28 Mon Sep 17 00:00:00 2001 From: Germain Clavier Date: Sat, 20 Apr 2024 17:31:34 +0200 Subject: [PATCH] Added a vectorstyle variable check for fix_ave_histo.cpp --- src/fix_ave_histo.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); }