mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
STYLE: unnecessary read-check in ccm::writer
This commit is contained in:
committed by
Andrew Heather
parent
4b39c9f19b
commit
e30dc962b3
@ -450,21 +450,14 @@ void Foam::ccm::writer::writeSolution
|
|||||||
|
|
||||||
forAllConstIters(objects, iter)
|
forAllConstIters(objects, iter)
|
||||||
{
|
{
|
||||||
word fieldName = (*iter()).name();
|
const word fieldName = (*iter()).name();
|
||||||
bool variableGood =
|
const word fieldType = (*iter()).headerClassName();
|
||||||
(
|
|
||||||
nameMapping.found(fieldName)
|
|
||||||
&& (*iter()).typeHeaderOk<volScalarField>(false)
|
|
||||||
);
|
|
||||||
|
|
||||||
if (!variableGood)
|
if (!nameMapping.found(fieldName))
|
||||||
{
|
{
|
||||||
// Only retain registered fields that are also readable
|
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
word fieldType = (*iter()).headerClassName();
|
|
||||||
|
|
||||||
if (fieldType == volScalarField::typeName)
|
if (fieldType == volScalarField::typeName)
|
||||||
{
|
{
|
||||||
Info<< " " << fieldName << flush;
|
Info<< " " << fieldName << flush;
|
||||||
|
|||||||
Reference in New Issue
Block a user