Skip to content
Snippets Groups Projects
Commit 86a37284 authored by mattijs's avatar mattijs
Browse files

BUG: cyclicAMIFvPatchField: transform before interpolate

parent 821f43c9
No related branches found
No related tags found
No related merge requests found
...@@ -194,11 +194,11 @@ void Foam::cyclicAMIFvPatchField<Type>::updateInterfaceMatrix ...@@ -194,11 +194,11 @@ void Foam::cyclicAMIFvPatchField<Type>::updateInterfaceMatrix
scalarField pnf(psiInternal, nbrFaceCells); scalarField pnf(psiInternal, nbrFaceCells);
pnf = cyclicAMIPatch_.interpolate(pnf);
// Transform according to the transformation tensors // Transform according to the transformation tensors
transformCoupleField(pnf, cmpt); transformCoupleField(pnf, cmpt);
pnf = cyclicAMIPatch_.interpolate(pnf);
// Multiply the field by coefficients and add into the result // Multiply the field by coefficients and add into the result
const labelUList& faceCells = cyclicAMIPatch_.faceCells(); const labelUList& faceCells = cyclicAMIPatch_.faceCells();
......
...@@ -86,6 +86,9 @@ void Foam::cyclicAMIGAMGInterfaceField::updateInterfaceMatrix ...@@ -86,6 +86,9 @@ void Foam::cyclicAMIGAMGInterfaceField::updateInterfaceMatrix
cyclicAMIInterface_.neighbPatch().interfaceInternalField(psiInternal) cyclicAMIInterface_.neighbPatch().interfaceInternalField(psiInternal)
); );
// Transform according to the transformation tensors
transformCoupleField(pnf, cmpt);
if (cyclicAMIInterface_.owner()) if (cyclicAMIInterface_.owner())
{ {
pnf = cyclicAMIInterface_.AMI().interpolateToSource(pnf); pnf = cyclicAMIInterface_.AMI().interpolateToSource(pnf);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment