From d09aa312219910951ef5cb7b1f42525639d0824a Mon Sep 17 00:00:00 2001 From: andy Date: Thu, 25 Oct 2012 16:33:20 +0100 Subject: [PATCH] ENH: Updated jump field construction of DataEntries --- .../derived/uniformJump/uniformJumpFvPatchField.C | 7 ++++++- .../derived/uniformJumpAMI/uniformJumpAMIFvPatchField.C | 7 ++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/src/finiteVolume/fields/fvPatchFields/derived/uniformJump/uniformJumpFvPatchField.C b/src/finiteVolume/fields/fvPatchFields/derived/uniformJump/uniformJumpFvPatchField.C index 7e7e0cbebc..88e7578141 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/uniformJump/uniformJumpFvPatchField.C +++ b/src/finiteVolume/fields/fvPatchFields/derived/uniformJump/uniformJumpFvPatchField.C @@ -62,8 +62,13 @@ Foam::uniformJumpFvPatchField::uniformJumpFvPatchField ) : fixedJumpFvPatchField(p, iF), - jumpTable_(DataEntry::New("jumpTable", dict)) + jumpTable_(new DataEntry("jumpTable")) { + if (this->cyclicPatch().owner()) + { + jumpTable_ = DataEntry::New("jumpTable", dict); + } + if (dict.found("value")) { fvPatchField::operator= diff --git a/src/finiteVolume/fields/fvPatchFields/derived/uniformJumpAMI/uniformJumpAMIFvPatchField.C b/src/finiteVolume/fields/fvPatchFields/derived/uniformJumpAMI/uniformJumpAMIFvPatchField.C index b34628ef33..cb9ff6cd90 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/uniformJumpAMI/uniformJumpAMIFvPatchField.C +++ b/src/finiteVolume/fields/fvPatchFields/derived/uniformJumpAMI/uniformJumpAMIFvPatchField.C @@ -62,8 +62,13 @@ Foam::uniformJumpAMIFvPatchField::uniformJumpAMIFvPatchField ) : fixedJumpAMIFvPatchField(p, iF), - jumpTable_(DataEntry::New("jumpTable", dict)) + jumpTable_(new DataEntry("jumpTable")) { + if (this->cyclicAMIPatch().owner()) + { + jumpTable_ = DataEntry::New("jumpTable", dict); + } + if (dict.found("value")) { fvPatchField::operator=(Field("value", dict, p.size()));