From c194bbf765645ed34f23a6406d3380632032112b Mon Sep 17 00:00:00 2001 From: mattijs <mattijs> Date: Tue, 20 Jun 2017 11:06:24 +0100 Subject: [PATCH] STYLE: fieldToCell: added explanation --- src/meshTools/sets/cellSources/fieldToCell/fieldToCell.C | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/meshTools/sets/cellSources/fieldToCell/fieldToCell.C b/src/meshTools/sets/cellSources/fieldToCell/fieldToCell.C index 298996937ca..b6640eaa036 100644 --- a/src/meshTools/sets/cellSources/fieldToCell/fieldToCell.C +++ b/src/meshTools/sets/cellSources/fieldToCell/fieldToCell.C @@ -190,7 +190,7 @@ void Foam::fieldToCell::applyToSet 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 if (!fieldObject.typeHeaderOk<labelIOList>(false)) { @@ -198,6 +198,9 @@ void Foam::fieldToCell::applyToSet << "Cannot read field " << fieldName_ << " 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") { IFstream str(typeFilePath<labelIOList>(fieldObject)); -- GitLab