diff --git a/src/meshTools/directMapped/directMappedPolyPatch/directMappedPatchBase.C b/src/meshTools/directMapped/directMappedPolyPatch/directMappedPatchBase.C index 166d74ae2a..91c24ecf28 100644 --- a/src/meshTools/directMapped/directMappedPolyPatch/directMappedPatchBase.C +++ b/src/meshTools/directMapped/directMappedPolyPatch/directMappedPatchBase.C @@ -637,7 +637,7 @@ Foam::directMappedPatchBase::directMappedPatchBase samplePatch_(samplePatch), uniformOffset_(true), offset_(offset), - offsets_(0), + offsets_(pp.size(), offset_), sameRegion_(sampleRegion_ == patch_.boundaryMesh().mesh().name()), mapPtr_(NULL) {} @@ -670,7 +670,7 @@ Foam::directMappedPatchBase::directMappedPatchBase offsets_ ( uniformOffset_ - ? pointField(patch_.size(), offset_) + ? pointField(pp.size(), offset_) : dict.lookup("offsets") ), sameRegion_(sampleRegion_ == patch_.boundaryMesh().mesh().name()),