From c8c003865556f0129b6030f631d09ef35475c636 Mon Sep 17 00:00:00 2001 From: mattijs Date: Tue, 13 Aug 2013 12:09:40 +0100 Subject: [PATCH] BUG: mappedPatchBase: only map if set --- .../mappedPatches/mappedPolyPatch/mappedPatchBase.C | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/meshTools/mappedPatches/mappedPolyPatch/mappedPatchBase.C b/src/meshTools/mappedPatches/mappedPolyPatch/mappedPatchBase.C index 4834c1a81a..129445ef80 100644 --- a/src/meshTools/mappedPatches/mappedPolyPatch/mappedPatchBase.C +++ b/src/meshTools/mappedPatches/mappedPolyPatch/mappedPatchBase.C @@ -1152,7 +1152,12 @@ Foam::mappedPatchBase::mappedPatchBase samplePatch_(mpb.samplePatch_), offsetMode_(mpb.offsetMode_), offset_(mpb.offset_), - offsets_(mpb.offsets_, mapAddressing), + offsets_ + ( + offsetMode_ == NONUNIFORM + ? vectorField(mpb.offsets_, mapAddressing) + : vectorField(0) + ), distance_(mpb.distance_), sameRegion_(mpb.sameRegion_), mapPtr_(NULL),