diff --git a/src/finiteVolume/fields/fvPatchFields/derived/fixedJump/fixedJumpFvPatchField.C b/src/finiteVolume/fields/fvPatchFields/derived/fixedJump/fixedJumpFvPatchField.C index f3a7615b4a..c9d6e367cc 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/fixedJump/fixedJumpFvPatchField.C +++ b/src/finiteVolume/fields/fvPatchFields/derived/fixedJump/fixedJumpFvPatchField.C @@ -62,8 +62,13 @@ Foam::fixedJumpFvPatchField::fixedJumpFvPatchField ) : jumpCyclicFvPatchField(p, iF), - jump_("jump", dict, p.size()) + jump_(p.size(), pTraits::zero) { + if (this->cyclicPatch().owner()) + { + jump_ = Field("jump", dict, p.size()); + } + if (dict.found("value")) { fvPatchField::operator= @@ -152,7 +157,12 @@ void Foam::fixedJumpFvPatchField::write(Ostream& os) const fvPatchField::write(os); os.writeKeyword("patchType") << this->interfaceFieldType() << token::END_STATEMENT << nl; - jump_.writeEntry("jump", os); + + if (this->cyclicPatch().owner()) + { + jump_.writeEntry("jump", os); + } + this->writeEntry("value", os); } diff --git a/src/finiteVolume/fields/fvPatchFields/derived/fixedJumpAMI/fixedJumpAMIFvPatchField.C b/src/finiteVolume/fields/fvPatchFields/derived/fixedJumpAMI/fixedJumpAMIFvPatchField.C index ad6fb925ae..cc9717ffac 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/fixedJumpAMI/fixedJumpAMIFvPatchField.C +++ b/src/finiteVolume/fields/fvPatchFields/derived/fixedJumpAMI/fixedJumpAMIFvPatchField.C @@ -62,8 +62,13 @@ Foam::fixedJumpAMIFvPatchField::fixedJumpAMIFvPatchField ) : jumpCyclicAMIFvPatchField(p, iF), - jump_("jump", dict, p.size()) + jump_(p.size(), pTraits::zero) { + if (this->cyclicAMIPatch().owner()) + { + jump_ = Field("jump", dict, p.size()); + } + if (dict.found("value")) { fvPatchField::operator= @@ -155,7 +160,12 @@ void Foam::fixedJumpAMIFvPatchField::write(Ostream& os) const fvPatchField::write(os); os.writeKeyword("patchType") << this->interfaceFieldType() << token::END_STATEMENT << nl; - jump_.writeEntry("jump", os); + + if (this->cyclicAMIPatch().owner()) + { + jump_.writeEntry("jump", os); + } + this->writeEntry("value", os); }