From 626fb9c542696db2ba7d1a40026bd12ff82892da Mon Sep 17 00:00:00 2001 From: mattijs <mattijs> Date: Thu, 14 Oct 2010 10:00:50 +0100 Subject: [PATCH] directMapped: fix nearestFace addressing --- .../directMappedFixedValueFvPatchField.C | 2 +- .../directMappedVelocityFluxFixedValueFvPatchField.C | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/finiteVolume/fields/fvPatchFields/derived/directMappedFixedValue/directMappedFixedValueFvPatchField.C b/src/finiteVolume/fields/fvPatchFields/derived/directMappedFixedValue/directMappedFixedValueFvPatchField.C index 2be7d3be5a7..4dd232091d1 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/directMappedFixedValue/directMappedFixedValueFvPatchField.C +++ b/src/finiteVolume/fields/fvPatchFields/derived/directMappedFixedValue/directMappedFixedValueFvPatchField.C @@ -260,7 +260,7 @@ void directMappedFixedValueFvPatchField<Type>::updateCoeffs() allValues ); - newValues = this->patch().patchSlice(allValues); + newValues.transfer(allValues); break; } diff --git a/src/finiteVolume/fields/fvPatchFields/derived/directMappedVelocityFluxFixedValue/directMappedVelocityFluxFixedValueFvPatchField.C b/src/finiteVolume/fields/fvPatchFields/derived/directMappedVelocityFluxFixedValue/directMappedVelocityFluxFixedValueFvPatchField.C index 17fa6f71fb0..36821fe72f0 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/directMappedVelocityFluxFixedValue/directMappedVelocityFluxFixedValueFvPatchField.C +++ b/src/finiteVolume/fields/fvPatchFields/derived/directMappedVelocityFluxFixedValue/directMappedVelocityFluxFixedValueFvPatchField.C @@ -198,7 +198,7 @@ void directMappedVelocityFluxFixedValueFvPatchField::updateCoeffs() distMap.constructMap(), allUValues ); - newUValues = patch().patchSlice(allUValues); + newUValues.transfer(allUValues); mapDistribute::distribute ( @@ -209,7 +209,7 @@ void directMappedVelocityFluxFixedValueFvPatchField::updateCoeffs() distMap.constructMap(), allPhiValues ); - newPhiValues = patch().patchSlice(allPhiValues); + newPhiValues.transfer(allPhiValues); break; } -- GitLab