diff --git a/src/postProcessing/functionObjects/field/nearWallFields/nearWallFields.C b/src/postProcessing/functionObjects/field/nearWallFields/nearWallFields.C index 67271ff7cb..83ede96387 100644 --- a/src/postProcessing/functionObjects/field/nearWallFields/nearWallFields.C +++ b/src/postProcessing/functionObjects/field/nearWallFields/nearWallFields.C @@ -33,7 +33,7 @@ License namespace Foam { -defineTypeNameAndDebug(nearWallFields, 0); + defineTypeNameAndDebug(nearWallFields, 0); } @@ -72,8 +72,8 @@ void Foam::nearWallFields::calcAddressing() label patchI = iter.key(); const fvPatch& patch = mesh.boundary()[patchI]; - vectorField nf = patch.nf(); - vectorField faceCellCentres = patch.patch().faceCellCentres(); + vectorField nf(patch.nf()); + vectorField faceCellCentres(patch.patch().faceCellCentres()); forAll(patch, patchFaceI) {