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)
|
||||
{
|
||||
word fieldName = (*iter()).name();
|
||||
bool variableGood =
|
||||
(
|
||||
nameMapping.found(fieldName)
|
||||
&& (*iter()).typeHeaderOk<volScalarField>(false)
|
||||
);
|
||||
const word fieldName = (*iter()).name();
|
||||
const word fieldType = (*iter()).headerClassName();
|
||||
|
||||
if (!variableGood)
|
||||
if (!nameMapping.found(fieldName))
|
||||
{
|
||||
// Only retain registered fields that are also readable
|
||||
continue;
|
||||
}
|
||||
|
||||
word fieldType = (*iter()).headerClassName();
|
||||
|
||||
if (fieldType == volScalarField::typeName)
|
||||
{
|
||||
Info<< " " << fieldName << flush;
|
||||
|
||||
Reference in New Issue
Block a user