fix bug enumerating output when using python invoke with multiple functions

This commit is contained in:
Axel Kohlmeyer
2021-08-04 17:07:16 -04:00
parent bb9c0630f8
commit 2e7b3081a1

View File

@ -138,7 +138,7 @@ void PythonImpl::command(int narg, char **arg)
if (ifunc < 0) error->all(FLERR,"Python invoke of undefined function");
char *str = nullptr;
if (noutput) {
if (pfuncs[ifunc].noutput) {
str = input->variable->pythonstyle(pfuncs[ifunc].ovarname,
pfuncs[ifunc].name);
if (!str)