From 2ce462ad474eeb03a40b7ecb87ffcbc7416bffdb Mon Sep 17 00:00:00 2001 From: Hrvoje Jasak Date: Tue, 22 Jul 2014 14:13:54 +0100 Subject: [PATCH] On topo change processor patch ordering changes. Zeljko Tukovic --- .../constraint/processor/ProcessorPointPatchField.C | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/foam/fields/PointPatchFields/constraint/processor/ProcessorPointPatchField.C b/src/foam/fields/PointPatchFields/constraint/processor/ProcessorPointPatchField.C index d5e46b983..c38ba7dee 100644 --- a/src/foam/fields/PointPatchFields/constraint/processor/ProcessorPointPatchField.C +++ b/src/foam/fields/PointPatchFields/constraint/processor/ProcessorPointPatchField.C @@ -511,7 +511,18 @@ evaluate } // Average over two sides - tpn = 0.5*(this->patchInternalField(this->internalField()) + tpn); + + // ZT, 22-07-2014 - point ordering is not same + // at master and slave side after topology change + const labelList& neiPoints = + procPatch_.procPolyPatch().neighbPoints(); + + tpn = + 0.5 + *( + this->patchInternalField(this->internalField()) + + Field(tpn, neiPoints) + ); // Get internal field to insert values into Field& iF = const_cast&>(this->internalField());