diff --git a/src/coupledMatrix/coupledFvMatrices/coupledFvMatrix/coupledFvMatrix.C b/src/coupledMatrix/coupledFvMatrices/coupledFvMatrix/coupledFvMatrix.C index 6dade9e19..b982884a3 100644 --- a/src/coupledMatrix/coupledFvMatrices/coupledFvMatrix/coupledFvMatrix.C +++ b/src/coupledMatrix/coupledFvMatrices/coupledFvMatrix/coupledFvMatrix.C @@ -100,12 +100,14 @@ Foam::coupledFvMatrix::solve(const dictionary& solverControls) fvMatrix& curMatrix = static_cast& >(matrices[rowI]); + // HR 12.03.19: Complete assembly before making copies. + curMatrix.completeAssembly(); + saveDiag.set(rowI, new scalarField(curMatrix.diag())); psiCmpt.set(rowI, new scalarField(curMatrix.psi().size())); source.set(rowI, new Field(curMatrix.source())); sourceCmpt.set(rowI, new scalarField(curMatrix.psi().size())); - curMatrix.completeAssembly(); curMatrix.addBoundarySource(source[rowI]); interfaces[rowI] = curMatrix.psi().boundaryField().interfaces();