BUG: setFields: consume token after warning

This commit is contained in:
mattijs
2012-06-20 04:43:32 +01:00
parent 3467a75993
commit 9f20b93be9

View File

@ -110,6 +110,9 @@ bool setCellFieldType
"(const fvMesh& mesh, const labelList& selectedCells," "(const fvMesh& mesh, const labelList& selectedCells,"
"Istream& fieldValueStream)" "Istream& fieldValueStream)"
) << "Field " << fieldName << " not found" << endl; ) << "Field " << fieldName << " not found" << endl;
// Consume value
(void)pTraits<Type>(fieldValueStream);
} }
return true; return true;
@ -286,6 +289,9 @@ bool setFaceFieldType
"(const fvMesh& mesh, const labelList& selectedFaces," "(const fvMesh& mesh, const labelList& selectedFaces,"
"Istream& fieldValueStream)" "Istream& fieldValueStream)"
) << "Field " << fieldName << " not found" << endl; ) << "Field " << fieldName << " not found" << endl;
// Consume value
(void)pTraits<Type>(fieldValueStream);
} }
return true; return true;