mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
STYLE: fieldToCell: added explanation
This commit is contained in:
@ -190,7 +190,7 @@ void Foam::fieldToCell::applyToSet
|
|||||||
false
|
false
|
||||||
);
|
);
|
||||||
|
|
||||||
// Note: should check for volScalarField but that introduces depencendy
|
// Note: should check for volScalarField but that introduces dependency
|
||||||
// on volMesh so just use another type with processor-local scope
|
// on volMesh so just use another type with processor-local scope
|
||||||
if (!fieldObject.typeHeaderOk<labelIOList>(false))
|
if (!fieldObject.typeHeaderOk<labelIOList>(false))
|
||||||
{
|
{
|
||||||
@ -198,6 +198,9 @@ void Foam::fieldToCell::applyToSet
|
|||||||
<< "Cannot read field " << fieldName_
|
<< "Cannot read field " << fieldName_
|
||||||
<< " from time " << mesh().time().timeName() << endl;
|
<< " from time " << mesh().time().timeName() << endl;
|
||||||
}
|
}
|
||||||
|
// Note: should use volScalarField::typeName instead below
|
||||||
|
// but that would introduce linkage problems (finiteVolume needs
|
||||||
|
// meshTools)
|
||||||
else if (fieldObject.headerClassName() == "volScalarField")
|
else if (fieldObject.headerClassName() == "volScalarField")
|
||||||
{
|
{
|
||||||
IFstream str(typeFilePath<labelIOList>(fieldObject));
|
IFstream str(typeFilePath<labelIOList>(fieldObject));
|
||||||
|
|||||||
Reference in New Issue
Block a user