avoid overeager flagging of errors for arguments to derived classes

This commit is contained in:
Axel Kohlmeyer
2023-07-03 10:32:24 -04:00
parent d23cebf9f1
commit 268faf935b

View File

@ -1464,10 +1464,14 @@ int DumpCustom::parse_fields(int narg, char **arg)
switch (argi.get_type()) {
case ArgInfo::UNKNOWN:
case ArgInfo::NONE:
error->all(FLERR,"Invalid attribute {} in dump {} command",arg[iarg],style);
break;
case ArgInfo::NONE:
// ignore because this may be a valid argument for a derived dump style class
return iarg;
break;
// compute value = c_ID
// if no trailing [], then arg is set to 0, else arg is int between []