Skip to content
Snippets Groups Projects
Commit c194bbf7 authored by mattijs's avatar mattijs
Browse files

STYLE: fieldToCell: added explanation

parent 614b33f3
Branches
Tags
No related merge requests found
...@@ -190,7 +190,7 @@ void Foam::fieldToCell::applyToSet ...@@ -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 ...@@ -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));
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment