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

COMP: wallDistData: incorrect templates

parent 2f567e53
Branches
Tags
No related merge requests found
......@@ -3,7 +3,7 @@
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\/ M anipulation |
\\/ M anipulation | Copyright (C) 2018 OpenCFD Ltd.
-------------------------------------------------------------------------------
License
This file is part of OpenFOAM.
......@@ -104,15 +104,14 @@ void Foam::wallDistData<TransferType>::correct()
field_.transfer(wave.cellData());
typename GeometricField<Type, fvPatchField, volMesh>::
Boundary& bf = boundaryFieldRef();
volScalarField::Boundary& bf = boundaryFieldRef();
// Transfer values on patches into boundaryField of *this and field_
forAll(bf, patchi)
{
scalarField& waveFld = wave.patchDistance()[patchi];
if (!isA<emptyFvPatchScalarField>(boundaryField()[patchi]))
if (!isA<emptyFvPatchScalarField>(bf[patchi]))
{
bf[patchi].transfer(waveFld);
Field<Type>& wavePatchData = wave.patchData()[patchi];
......
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