avoid overeager flagging of errors for arguments to derived classes
This commit is contained in:
@ -1464,10 +1464,14 @@ int DumpCustom::parse_fields(int narg, char **arg)
|
|||||||
switch (argi.get_type()) {
|
switch (argi.get_type()) {
|
||||||
|
|
||||||
case ArgInfo::UNKNOWN:
|
case ArgInfo::UNKNOWN:
|
||||||
case ArgInfo::NONE:
|
|
||||||
error->all(FLERR,"Invalid attribute {} in dump {} command",arg[iarg],style);
|
error->all(FLERR,"Invalid attribute {} in dump {} command",arg[iarg],style);
|
||||||
break;
|
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
|
// compute value = c_ID
|
||||||
// if no trailing [], then arg is set to 0, else arg is int between []
|
// if no trailing [], then arg is set to 0, else arg is int between []
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user