checkMesh -writeFields does not check correctness
Functionality to add/problem to solve
checkMesh -writeFields '(BANANA)'
will happily run and not give any indication about illegal input. Attached file checks.
@mark : happy with this?
checkMesh -writeFields '(BANANA)'
will happily run and not give any indication about illegal input. Attached file checks.
@mark : happy with this?
added feature label
Likely more like this. Funnily enough, we don't have a subtraction operator.
wordHashSet selectedFields;
if (args.found("writeFields"))
{
selectedFields = args.getList<word>("writeFields");
wordHashSet badFields(selectedFields);
badFields -= allFields;
if (!badFields.empty())
{
FatalErrorInFunction
<< "Illegal field(s) " << flatOutput(badFields.sortedToc()) << nl
<< "Valid fields are " << flatOutput(allFields.sortedToc()) << nl
<< exit(FatalError);
}
}
else if (args.found("writeAllFields"))
{
selectedFields = allFields;
}
mentioned in commit bcda061f
closed