diff --git a/src/meshTools/sets/cellSources/fieldToCell/fieldToCell.C b/src/meshTools/sets/cellSources/fieldToCell/fieldToCell.C index 298996937ca31c46a0a8d2eba25f0d658fb5ad2d..b6640eaa03649a5e8a8237fc514e04db66cb86a5 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));