Commit 55d64604 authored by mattijs's avatar mattijs
Browse files

BUG: jump should be negated on slave patch.

parent 0712a686
...@@ -106,6 +106,10 @@ tmp<Field<Type> > jumpCyclicFvPatchField<Type>::patchNeighbourField() const ...@@ -106,6 +106,10 @@ tmp<Field<Type> > jumpCyclicFvPatchField<Type>::patchNeighbourField() const
Field<Type>& pnf = tpnf(); Field<Type>& pnf = tpnf();
tmp<Field<scalar> > tjf = jump(); tmp<Field<scalar> > tjf = jump();
if (!this->cyclicPatch().owner())
{
tjf = -tjf;
}
const Field<scalar>& jf = tjf(); const Field<scalar>& jf = tjf();
if (this->doTransform()) if (this->doTransform())
...@@ -149,6 +153,10 @@ void jumpCyclicFvPatchField<Type>::updateInterfaceMatrix ...@@ -149,6 +153,10 @@ void jumpCyclicFvPatchField<Type>::updateInterfaceMatrix
if (&psiInternal == &this->internalField()) if (&psiInternal == &this->internalField())
{ {
tmp<Field<scalar> > tjf = jump(); tmp<Field<scalar> > tjf = jump();
if (!this->cyclicPatch().owner())
{
tjf = -tjf;
}
const Field<scalar>& jf = tjf(); const Field<scalar>& jf = tjf();
forAll(*this, facei) forAll(*this, facei)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment