mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
BUG: setFields: consume token after warning
This commit is contained in:
@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user