Skip to content
Snippets Groups Projects
Commit 9f20b93b authored by mattijs's avatar mattijs
Browse files

BUG: setFields: consume token after warning

parent 3467a759
Branches
Tags
No related merge requests found
......@@ -110,6 +110,9 @@ bool setCellFieldType
"(const fvMesh& mesh, const labelList& selectedCells,"
"Istream& fieldValueStream)"
) << "Field " << fieldName << " not found" << endl;
// Consume value
(void)pTraits<Type>(fieldValueStream);
}
return true;
......@@ -286,6 +289,9 @@ bool setFaceFieldType
"(const fvMesh& mesh, const labelList& selectedFaces,"
"Istream& fieldValueStream)"
) << "Field " << fieldName << " not found" << endl;
// Consume value
(void)pTraits<Type>(fieldValueStream);
}
return true;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment