Skip to content
Snippets Groups Projects
Commit 55d64604 authored by mattijs's avatar mattijs
Browse files

BUG: jump should be negated on slave patch.

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